Improvements 🔧
- New PHPDoc
non-empty-string
type (phpstan/phpstan-src@6ef5e91), #4711, #3981 - MissingReturnRule - make behavior with
checkPhpDocMissingReturn: false
more strict (phpstan/phpstan-src@2656081) - Update
nikic/php-parser
to work on PHP 8.1 again (phpstan/phpstan-src@0f8ead7), #5263
Bleeding edge 🔪
- Validate overriding methods in stubs (phpstan/phpstan-src@c98d0a4)
- Cross-check generic interface implementations (phpstan/phpstan-src@284af50), #5222
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 🐛
- Don't try to create a directory that already exists (#572), thanks @PrinsFrank!
!empty()
leads tonon-empty-string
(phpstan/phpstan-src@790a838), #5258- Fix mess in
ClassReflection::getInterfaces()
(phpstan/phpstan-src@cd02bf8), #4854
Function signature fixes 🤖
explode()
always returnsnon-empty-array
(phpstan/phpstan-src@25260db)- Improve
sscanf()
signature (#567), thanks @fluffycondor!