+
Skip to content

2.0.0

Compare
Choose a tag to compare
@phpstan-bot phpstan-bot released this 11 Nov 07:23
· 174 commits to 2.0.x since this release
72115ab

PHPStan 2.0

Read more about PHPStan 2.0.

Check out the UPGRADING guide!.

Buy the PHPStan elephpant and T-shirts!

Design 2

Major new features 🚀

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

  • Countable stub with 0|positive-int (#1027), thanks @staabm!
  • More precise types for bcmath function parameters (#2217), thanks @Warxcell!
  • Specify Imagick parameter types (#2334), thanks @zonuexe!
  • max()/min() should expect non-empty-array (#2163), thanks @staabm!
  • Narrow Closure::bind $newScope param (#2817), thanks @mvorisek!
  • error_log errors with message_type=2 (#2428), #9380, thanks @staabm!
  • Update functionMap (#2699, #2783), thanks @zonuexe!
  • Improve image related functions signature (#3127), thanks @thg2k!
  • Support FILE_NO_DEFAULT_CONTEXT in file() (#2482), thanks @staabm!
  • Fix ftp related function signatures (#2551), thanks @thg2k!
  • More precise file() flags args (#2476, #2482), thanks @staabm!
  • More precise flock() operation flags (#2477), thanks @staabm!
  • More precise stream_socket_client() signature (#2519), thanks @staabm!
  • More precise scandir() signature (#2518), thanks @staabm!
  • More precise extract() signature (#2517), thanks @staabm!
  • More precise RecursiveIteratorIterator::__construct() parameter types (#2835), thanks @staabm!
  • Update Locale signatures (#2880), thanks @devnix!
  • Improved the type of the $mode parameter for the count() (#3190), thanks @kuma3!
  • Check filter_input* type param type (#2271), thanks @herndlm!
  • Change curl_setopt function signature based on 2nd arg (#1719), thanks @staabm!
  • Support returning an array or a string in count_chars() (#3596), thanks @u01jmg3!
  • xdebug_get_function_stack: fix signature (#3605), thanks @janedbal!

Internals 🔍

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载