packagist phpstan/phpstan 1.9.3

latest releases: 2.0.x-dev, 1.12.x-dev, 1.12.8...
23 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 🔧

Bugfixes 🐛

Function signature fixes 🤖

  • ImagickPixel::getColor() normalized param accepts int instead of bool (#2020), thanks @blankse!
  • Declare more PDOStatement method types (#2096), thanks @staabm!

Internals 🔍

  • Fix non-working type assertions in NodeScopeResolverTest cases (#1992), thanks @herndlm!
  • Use ExpressionTypeHolders for conditional expression type (#1998), thanks @rajyan!
  • Simplify array collections in UnionTypeHelper (#1988), thanks @herndlm!
  • Avoid specifying scalar types and delete string casts (#1999), thanks @rajyan!
  • Add filename and line of the error of assertVariableCertainty (#2008), thanks @rajyan!
  • README: how to composer install (#2025), thanks @janedbal!
  • Group $expressionTypes and $nativeExpressionTypes in Scope creation methods (#2022), thanks @herndlm!
  • Use ExpressionTypeHolder when comparing conditionals (#2048), thanks @rajyan!
  • UnionType - carry information that it's normalized (phpstan/phpstan-src@96e4443)
  • VerbosityLevel offers getLevelValue() (phpstan/phpstan-src@4f7e20b)
  • Get rid of TypeTraverser in ArrayChunkFunctionReturnTypeExtension (#2082), thanks @herndlm!
  • Get rid of TypeTraverser in ArraySliceFunctionReturnTypeExtension (#2085), thanks @herndlm!
  • Get rid of TypeTraverser in ArrayReverseFunctionReturnTypeExtension (#2084), thanks @herndlm!
  • Get rid of TypeTraverser in StrSplitFunctionReturnTypeExtension (#2087), thanks @herndlm!

Don't miss a new phpstan release

NewReleases is sending notifications on new releases.