PhpStorm now drops redundant declarations from auto-generated PHPDoc blocks in a larger number of its actions and reports on specific redundant PHPDoc tags in doc comments. PhpStorm now provides code completion for these where applicable. With generic annotations, you can fully benefit from decorator and other patterns for injecting behavior into objects.
We’ve finally implemented it in this release but will continue to work on making PHP generics support the best it can possibly be going forward. One of the most highly anticipated features in this area has been support for static references in generic templates.
Support for the `static` type in generics Press Shift+F6 while on a generic type to start renaming it and PhpStorm will automatically update the name throughout your whole codebase.Īnother way to do the same is by pressing Ctrl+T and then choosing Rename. PHP Generics in PHP New Rename generic refactoring 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.įor a quick video overview, check out this roundup of the key changes from our Developer Advocate, Brent.