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 (https://github.com/phpstan/phpstan-src/commit/0613451c60bbebf1db50bbea618f2fcd2e3f7c07, https://github.com/phpstan/phpstan-src/commit/14b17a8f05b5bba0377b0fbb4311d3c3c6cb44e7), #351
- Variables in the root scope can be made always defined with inline
@var
PHPDoc (https://github.com/phpstan/phpstan-src/commit/44f9d08dd0c9c5ca3f88d484132fc3dfc25d056b)
- Support multiple doc comments above statement (https://github.com/phpstan/phpstan-src/commit/428c8e594f6b2ac2706e79760964b0635f78bdbc)
- 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 (https://github.com/phpstan/phpstan-src/commit/4cf01410bbafed980ab47f8cbd0e2d1eb3864328), #3426
- Skip files from broken Composer installations (https://github.com/phpstan/phpstan-src/commit/d1990b804a997af97573dcb9172832b53592a407), #3426
- Fix DOMDocument child class contravariance check (https://github.com/phpstan/phpstan-src/commit/09f0bebde608fe7976eaef6a40f543de8464a8a4), #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!