2.1.36
Bugfixes ๐
- Fix FNSR false positive about "expr.resultUnused" (https://github.com/phpstan/phpstan-src/commit/ca7ab77b8864873e71858859cca118f8eb1eaf7a)
- Fix named argument parameter matching in getFunctionCallStackWithParameters (#4791), thanks @janedbal!
- Do not deep-clone nodes (https://github.com/phpstan/phpstan-src/commit/9a31328f6f682cf2703218e1f8d29f8112269b1b), #13992
- Add getScopeType and getScopeNativeType again (https://github.com/phpstan/phpstan-src/commit/02869f6dfc93fd5672b440e270d7611945612597), #13983
- See discussion https://github.com/phpstan/phpstan/issues/13983#issuecomment-3778076660
- Skip polyfills in
vendorwhen on a higher PHP version (https://github.com/phpstan/phpstan-src/commit/f06c4a2cbcf4f0e167b7fff1a3e8ab3b46bded86)
Function signature fixes ๐ค
- Fix uopz_add_function() return type (#4578), thanks @zonuexe!
Internals ๐
- Test that expr inside
isset()can be changed with fixable rule (https://github.com/phpstan/phpstan-src/commit/53a03d5f0bf7507e8e8d9f99970c5f09ed4df8d4), #13983 - Added regression test (#4796), #13694, thanks @staabm!