

PhpStorm has supported PHP 8.1 Eums since the 2021.2 release.

You can switch from the toolbar or by specifying the requirement in composer.json.Įnumerations can be used instead of a set of constants, and they provide type validation out of the box. Here’s what’s available and how you can use it in the IDE.Īs usual, you can try new features by setting the project language level to PHP 8.1. PhpStorm 2021.3 supports all of the latest language changes. PHP 8.1 has already been released! We would like to express our thanks to all the contributors and release managers! Read this blog post for details about all the significant updates, demonstrated through a ton of GIFs!
