Improvements 🔧
- Enhancements for analysis of view files implemented in plain PHP (#351)
- All variables including
$this
in the root scope are always "maybe-defined" which means they won't be reported on level 0 but on level 1 (phpstan/phpstan-src@0613451, phpstan/phpstan-src@14b17a8), #351 - Variables in the root scope can be made always defined with inline
@var
PHPDoc (phpstan/phpstan-src@44f9d08) - Support multiple doc comments above statement (phpstan/phpstan-src@428c8e5)
- All variables including
- Detect duplicate declarations of class constants, properties, and methods (#250), #3475, thanks @dktapps!
- Support for BitwiseNot (
~
) operator (#249), thanks @dktapps!
Bugfixes 🐛
- Classes that extend ext-dom classes are always analysed using static reflection (#242), #3477, thanks @schlessera!
- Look at
install-path
frominstalled.json
available in Composer v2 (phpstan/phpstan-src@4cf0141), #3426 - Skip files from broken Composer installations (phpstan/phpstan-src@d1990b8), #3426
- Fix DOMDocument child class contravariance check (phpstan/phpstan-src@09f0beb), #3478
Function signature fixes 🤖
- Update jetbrains/phpstorm-stubs (solves #3492, #3482, #3480)
- dbase-ext: DB-handle changed from int to resource (#246), thanks @swen100!
dbase_open
anddbase_create
can also return false (#246), thanks @swen100!- functionMap: narrow possible return values of openssl_verify() (#250), thanks @dktapps!
- Loosen the requirements for the $function parameter of the register_shutdown_function function (#240), thanks @ste93cry!