github phpstan/phpstan 1.5.5

latest releases: 2.0.1, 1.12.10, 2.0.0...
2 years ago

Improvements 🔧

  • Remove unnecessary ConstantArrayType::getKeyType() (#1173), thanks @herndlm!
  • Improve ConstantArrayType union performance (#1176), thanks @herndlm!
  • Do not evaluate constructors as having side effects by default, Handle side effects of constructors in new (#1205), thanks @VasekPurchart!

Bleeding edge 🔪

  • Specify explicit mixed array type via is_array (#1191), thanks @herndlm!

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

Bugfixes 🐛

Function signature fixes 🤖

  • DOMText::splitText() may return false (#1180), thanks @xPaw!
  • Collator creation function/method can return null (#1182), thanks @finwe!
  • Fix return signature of SplObjectStorage methods (#1185), thanks @Furgas!
  • Fix return signature of SimpleXMLElement::getDocNamespaces (#1190), thanks @Furgas!

Don't miss a new phpstan release

NewReleases is sending notifications on new releases.