Skip to content

2.1.0

Choose a tag to compare

@phpstan-bot phpstan-bot released this 31 Dec 07:34
· 2397 commits to 2.1.x since this release
2392d36

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 馃敡

Bugfixes 馃悰

  • Fix preg_match() group containing start/end meta characters (#3740), #12297, thanks @staabm!

Internals 馃攳