Skip to content

Latest commit

 

History

History
196 lines (181 loc) · 24 KB

changelog-2.0.md

File metadata and controls

196 lines (181 loc) · 24 KB

When PHPStan 2.0 gets released, this will turn into releases notes on GitHub.

Check out the UPGRADING guide!.

Major new features 🚀

Improvements 🔧

Bugfixes 🐛

  • Fix invariance composition (#2054), thanks @jiripudil!
  • Fix checking generic mixed type based on config (#2885), thanks @schlndh!

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!

Internals 🔍