Improvements 🔧
- New Docker image hosted in GitHub Container Registry and based on PHP 8. See the homepage and the documentation.
- Support for attributes (PHP 8)
- Result cache does not get invalidated when only ignoreErrors changes (https://github.com/phpstan/phpstan-src/commit/ef84d9444f889ac5606c37ce80d2fa5f19072cb8) - this makes working with the baseline instantaneous!
- Result cache - do not restore and save when only files (not directories) are passed as analysed paths (https://github.com/phpstan/phpstan-src/commit/dd11e250007d211a420dfe3da132d08bb2180d7c)
- FunctionCallParametersCheck - more precise lines (https://github.com/phpstan/phpstan-src/commit/ba119bcc7b95a46f887c124f4f0d096a0e9c66ca)
Bugfixes 🐛
- Refactored levels that report named arguments errors (https://github.com/phpstan/phpstan-src/commit/1e42295fdce7ef14ab8fc1bc83d00ce8e9e08c43)
- TeamcityErrorFormatter - attempt to fix notFileSpecificErrors that do not appear (https://github.com/phpstan/phpstan-src/commit/8ec0a963075432d0041f380abf085a4759d3d966)
- Fix FloatType equaling ConstantFloatType (#375), thanks @jlherren!
- Fixed wrong closure typehint (https://github.com/phpstan/phpstan-src/commit/50aff6d16cc6d3d3d04778ac579b25c9698b6d74), #4097
- PhpFunctionReflection - do not return nonexistent filename (https://github.com/phpstan/phpstan-src/commit/e496d71a77ab3b13fb09d2b76e55affd3610bdf4, https://github.com/phpstan/phpstan-src/commit/f000222ca5345d40efa920e52317bdd3bc8c5ea4, https://github.com/phpstan/phpstan-src/commit/3ea4fc30474cba6db3dbf99d7e9006756ed8c983), #4089
- Updated BetterReflection (https://github.com/phpstan/phpstan-src/commit/73a0c1bf421491501b7a56f053d5df252ddc223c), #4095
- Turns out static method can be called on a trait (https://github.com/phpstan/phpstan-src/commit/86c11d335debcfd926ec53213a11d19831891566), #4107
Function signature fixes 🤖
- Fixing ldap functions stubs (#376), thanks @MCMic!