packagist phpstan/phpstan 1.10.22

latest releases: 1.11.x-dev, 1.11.3, dev-create-pull-request/baselines-1.11.x...
11 months ago

Bleeding edge 🔪

  • More precise file() flags args (#2476, #2482), thanks @staabm!
  • Non-static methods cannot be used as static callables in PHP 8+ (#2420), thanks @staabm!
  • More precise flock() operation flags (#2477), thanks @staabm!
  • Rule for call_user_func() (#2479), thanks @staabm!

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 🤖

  • Update functionMap for ext-mongodb 1.16 (#2473), thanks @alcaeus!
  • Add false to the db2_num_rows() return type (#2456), thanks @morozov!
  • More precise ignore_user_abort() return type (#2489), thanks @staabm!

Internals 🔍

  • Type projections, part 1: call-site variance in GenericObjectType (#2471), thanks @jiripudil!
  • Test PHP 8.3 (#2486)
  • Cleanup NodeScopeResolver (#2499), thanks @staabm!

Don't miss a new phpstan release

NewReleases is sending notifications on new releases.