1.7.13
Improvements 馃敡
- Optimization of printing expressions using ExprPrinter (phpstan/phpstan-src@e12524e, phpstan/phpstan-src@fba2929)
- Do not require an existing filename when reading PHPDocs from an evaled class (#1409), #7441
- StatementExitPoint and ThrowPoint covered by BC promise (phpstan/phpstan-src@e8b8ffd)
- Update phpdoc-parser #7426
- Optimize
Lexer::tokenize()
(phpstan/phpdoc-parser#133), thanks @rvanvelzen! - Optimize generated regex (phpstan/phpdoc-parser#134), thanks @rvanvelzen!
- Optimize
Bleeding edge 馃敧
If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's phpstan.neon
:
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. Learn more
Bugfixes 馃悰
- Fix incorrect UnhandledMatchError for match expressions using spaceship operator (#1408), #4451, thanks @rvanvelzen!
- Fix resolving class const fetch for constant strings (#1416), #7391, thanks @rvanvelzen!
- Fix resolving user-defined constants in sub-namespaces (#1415), #7352, thanks @rvanvelzen!
TypeUtils::getDirectClassNames()
- return unique list of class names (phpstan/phpstan-src@b85fce0)- Fix "missing return" for void/never conditional return types (#1418), #7384, thanks @rvanvelzen!