packagist phpstan/phpstan 1.10.15

latest releases: dev-create-pull-request/baselines-2.0.x, 2.0.x-dev, dev-renovate/major-playground-api...
16 months ago

Bleeding edge 🔪

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 🔧

  • Update phpdoc-parser to 1.20.4
    • Changelog
    • Notable changes:
      • CallableTypeNode - support object shape in return type
      • CallableTypeNode - support $this in return type
      • CallableTypeNode - support ConstTypeNode in return type
  • Implement IniGetReturnTypeExtension (#2362), #3063, thanks @staabm!
  • PHPStan\Node\ClassMethod is covered by BC promise (phpstan/phpstan-src@1036d19), #9249
  • Enforce magic __serialize() and __unserialize() return types (#2372), thanks @staabm!
  • Report ?-> call on always-null (phpstan/phpstan-src@74d1c9a), #9284

Bugfixes 🐛

Function signature fixes 🤖

  • intval() and floatval() should handle non-scalar values (#2351), thanks @dravnic!
  • More precise strval() family function signatures (#2354), thanks @dravnic!

Internals 🔍

Don't miss a new phpstan release

NewReleases is sending notifications on new releases.