Early Access Program

PhpStorm 2023.2 EAP #3

The third build of our Early Access Program for PhpStorm 2023.2 is now available!

This blog post will cover support for object shape annotations that improve code completion for dynamic objects.

The Toolbox App is the easiest way to get the EAP builds and keep your stable and EAP versions up to date. You can also manually download the EAP builds from our website.

Object shapes support

In this release, we are adding the ability to define the structure of generic objects via shape annotation, similar to how it is done for array shapes

While you would normally define objects via declared properties, you may also need proper code completion for dynamic properties with classes like stdClass or functions like __get()/__set() or json_decode().

Now you can define the structure of an arbitrary object in a PHPDoc comment, and PhpStorm will parse the object shape and display a code completion tooltip during assignment of object properties. The syntax is supported for nested objects as well.

The other way around, you can use a PhpStorm quick-fix Alt+Enter to generate object shapes in a PHPDoc comment or an #[ObjectShape] attribute for the objects that already have properties assigned to them.


Please see the release notes for the complete list of changes in the EAP #2 build.

  • Important! PhpStorm EAP builds are not fully tested and may be unstable.
  • You can install an EAP build side by side with a stable PhpStorm version to try out the latest features.
  • EAP builds are free to use and don’t require a license. However, they expire 30 days after the build date and then you’ll have to download a new build.

Please let us know about any problems you find by reporting them to our issue tracker or commenting on this post.

image description