![PhpStorm 2021.2: Generics, Enums, Array Shapes, Inspections, Refactorings, and More | The PhpStorm Blog PhpStorm 2021.2: Generics, Enums, Array Shapes, Inspections, Refactorings, and More | The PhpStorm Blog](https://blog.jetbrains.com/wp-content/uploads/2021/07/generics_class-string.gif)
PhpStorm 2021.2: Generics, Enums, Array Shapes, Inspections, Refactorings, and More | The PhpStorm Blog
Instantiate class from already instantiated class instead of class-string · Issue #5701 · phpstan/phpstan · GitHub
Alain Schlesser on Twitter: "@scottfennell123 Basically, instead of riddling your code with lots of direct instantiations, you can control them in one central location. In case you need to make a change,
![PhpStorm 2021.2: Generics, Enums, Array Shapes, Inspections, Refactorings, and More | The PhpStorm Blog PhpStorm 2021.2: Generics, Enums, Array Shapes, Inspections, Refactorings, and More | The PhpStorm Blog](https://blog.jetbrains.com/wp-content/uploads/2021/07/generics_new_class.gif)