Update dependency phpstan/phpstan to v2.1.0
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
phpstan/phpstan | require-dev | minor |
2.0.4 -> 2.1.0
|
⚠️ WarningSome dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
phpstan/phpstan (phpstan/phpstan)
v2.1.0
Read all about this release on PHPStan's blog!
🚀
Major new features - Support for PHP 8.4's property hooks (RFC)
- Support for PHP 8.4's asymmetric visibility (RFC)
- Support for PHP 8.4's
#[Deprecated]
attribute (RFC)
🔪
Bleeding edge - UnusedFunctionParametersCheck: report precise line (#3743), thanks @janedbal!
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
🔧
Improvements - Readonly classes cannot be combined with
#[AllowDynamicProperties]
(#3738), #12281, thanks @staabm! - Check trait attributes (#3738), thanks @staabm!
- Named argument detection is scope-PHP version dependent (#3662), thanks @staabm!
- Improve loose comparison on integer (#3748), #12317, #12312, thanks @staabm!
- Improve loose comparison on union type (#3750), thanks @staabm!
- AccessStaticPropertiesRule - fixed blindspot about
parent::
(https://github.com/phpstan/phpstan-src/commit/41837b490b12e3c71b4ca50003690f2900f74876)
🐛
Bugfixes
🔍
Internals - Attributes rules use
In*Node
virtual nodes for more precise Scope https://github.com/phpstan/phpstan-src/commit/90e48fa876696f221874a2766c2bf3fc1bea0ec0) - Remove duplicated PHPDoc from InternalScopeFactory classes (#3761), thanks @herndlm!
- Scope: use
Scope::getConstant
instead (#3666), thanks @staabm!
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.