github phpstan/phpstan 0.12.26

Read more about this release in a feature article on PHPStan's blog ยป

Major new features ๐Ÿš€

Static reflection

  • Less configuration needed. PHPStan no longer needs autoloading configuration setup, it works out of the box in most situations. Check out Discovering Symbols guide in the documentation for more details.
    • Introduced new related configuration options scanFiles, and scanDirectories. Deprecated autoload_files, and autoload_directories.
  • It's now possible to analyse files that mix class/function declarations and side-effects.

Improvements ๐Ÿ”ง

Bugfixes ๐Ÿ›

Function signature fixes ๐Ÿค–

  • Fix mb_convert_encoding() (#213), thanks @marcu87!
  • Added stubs for SplDoublyLinkedList, SplQueue and SplPriorityQueue (#205), thanks @dktapps!
  • PDO stub - add missing constants (, #2883
  • Fix return values for date_parse() (#217), thanks @cxj!
  • DynamicReturnType for array search call not strict (#215), thanks @VincentLanglet!
  • Fix some SplFileObject signature (#220), thanks @VincentLanglet!
  • Make toArray() return list in ext-ds (#221), thanks @simPod!
  • Fix sapi_windows_set_ctrl_handler signature (#224), thanks @Seldaek!
  • Fix signature of XSLTProcessor::transformToXml (#226), thanks @czjvic!
latest releases: 0.12.90, 0.12.89, 0.12.88...
12 months ago