![]() ![]() ![]() Readonly properties are properties that cannot be changed after initialization, meaning after a value is assigned to them. Learn more about enums support in PhpStorm. 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! PHP 8.1 New Bookmarks tool window Source preview for Show Usages Improved Markdown supportĪlign diff highlighting Checkout and Rebase onto Current for remote branches Reorganized VCS settings New ‘Push All up to Here’ action Support for text streams and JSON streams Binary responses Output redirection to custom file or directory Support for HTTP request identifiers Support for `rsync` Retry for failed uploads Speedup for SFTP/FTP/FTPS with multithreaded connection Upload all opened files Quickly switch default server for project Proxy support for SSH connections Improved support for Doctrine Collections Support for future Laravel 9 collections Infer generic types from constructor Support for the phpstan-* annotation for templatesĭrag and drop support for the Move Class refactoring Inline function or method Inline variable Introduce (extract) variable This major release introduces full support for PHP 8.1, better handling of generics in PHP, remote development, improvements to deployment, an HTTP client, refactorings, and much more.Įnums Readonly properties Intersection types New return type: `never` Final constants `new` operator in initializers First-class callables Deprecations ![]()
0 Comments
Leave a Reply. |