PhpStorm Now Supports PHP 8.3

Read this post in other languages:

As of today, PhpStorm provides full support for all of the improvements in PHP 8.3. Read this blog post to find out what this release includes and how you can benefit from it. Don’t forget to update your IDE to the latest version to get the most out of these latest enhancements.

As always, the PhpStorm team aims to provide full support for the latest version of PHP from the first day of its release, and this is exactly the case for PHP 8.3.

The new PHP version will be released in two days, on November 23, and will be fitted with typed class constants, improvements to readonly classes, the new #[\Override] attribute, and the new json_validate() function, as well as several new deprecations and other updates:

PhpStorm seamlessly integrates most changes into your workflow, so in this post, we’ll highlight only the new PHP 8.3 updates that you need to know about so that you can start to benefit from them straight away.

1. #[\Override] attribute

With PHP 8.3, you can explicitly signal method overrides with the new #[\Override] attribute. PhpStorm suggests adding the attribute where applicable:

2. New json_validate() function

PHP 8.3 introduces the json_validate() function for efficient JSON validation. PhpStorm detects relevant patterns and recommends using json_validate() for better memory usage:

3. Typed class constants

With PHP 8.3, you can declare types for class constants. PhpStorm supports this feature with intelligent suggestions, type hint completion, and checks for compatibility and redeclaration.

4. Deprecations

Stay ahead of PHP 8.3 deprecations with PhpStorm’s inspections, ensuring your codebase remains up to date:

If you haven’t already given PhpStorm 2023.2.4 a try, download it today and explore the IDE’s enhanced PHP 8.3 compatibility.

That’s all for today. Thank you for using PhpStorm for your PHP development!


The full list of changes is available in the release notes.
And as always, please feel free to report any issues you encounter to our tracker or here in the comments.

image description