PhpStorm Now Supports PHP 8.3
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.
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!
Subscribe to Blog updates
Thanks, we've got you!
PhpStorm 2023.2.1 is now available
PhpStorm 2023.2.1 is a minor update, and it includes a host of bug fixes and quality-of-life improvements.
PhpStorm 2023.2 Is Now Available
This release is a major update that includes improvements for generics in PHP, Laravel Pint support, native support for PHP assertions, AI Assistant (Limited access), GitLab integration, text search in Search Everywhere, and much more. Download PhpStorm 2023.2 For a quick video overview, c…