Skip to content

Releases: phpstan/phpstan

2.1.11

24 Mar 13:45
8ca5f79
Compare
Choose a tag to compare

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

2.1.10

23 Mar 14:59
051a3b6
Compare
Choose a tag to compare

Bugfixes 🐛

2.1.9

23 Mar 11:48
0876262
Compare
Choose a tag to compare

Improvements 🔧

Bugfixes 🐛

Internals 🔍

  • RuleTestCase: set shouldPolluteScopeWithLoopInitialAssignments to true which is PHPStan's default behaviour (phpstan/phpstan-src@1b56b0c)
  • ResultCache: allow customization of params not invalidating cache (#3877), thanks @janedbal!
  • RegexArrayShapeMatcher - turn more details immutable (#3892), thanks @staabm!

1.12.23

23 Mar 14:58
29201e7
Compare
Choose a tag to compare

Fix condition of fall-through case not used for exhaustive checks (#3900), #11064, #3488, #8719, #12722, thanks @rvanvelzen!

1.12.22

23 Mar 11:42
85b21fb
Compare
Choose a tag to compare

Improvements 🔧

  • More precise implode() return type (#3774), thanks @staabm!

Bugfixes 🐛

2.1.8

09 Mar 09:33
f9adff3
Compare
Choose a tag to compare

Improvements 🔧

  • @readonly property cannot be passed by-ref (#3850), #12676, thanks @staabm!
  • ClassReflection - cannot be a subclass of final-overriden class (phpstan/phpstan-src@ed4ea0a)
  • Deprecated ClassReflection::isSubclassOf(string $className) in favour of ClassReflection::isSubclassOfClass(ClassReflection $class)
    • If you just have string $className instead of ClassReflection and you are too lazy to get ClassReflection via ReflectionProvider, you can still use ClassReflection::is(string $className)

Bugfixes 🐛

Internals 🔍

1.12.21

09 Mar 09:28
14276fd
Compare
Choose a tag to compare

Bugfixes 🐛

Function signature fixes 🤖

  • Fix MongoCollection::findOne() return type (#3854), thanks @aivchen!

2.1.7

05 Mar 13:47
12567f9
Compare
Choose a tag to compare

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

  • Change return type of ResourceBundle::getLocales (#3840), #12579, thanks @mat-se!
  • Make precise scandir() argument and return type (#3808), thanks @zonuexe!
  • More precise return type for mysqli_fetch_all() (#3778), thanks @oxan!

Internals 🔍

  • StrlenFunctionReturnTypeExtension: Cleanup instanceof ConstantString (#3780), thanks @staabm!
  • Adjust and make space for tests for new behaviour of new (#3852)

1.12.20

05 Mar 13:41
3240b19
Compare
Choose a tag to compare

Bugfixes 🐛

Internals 🔍

2.1.6

19 Feb 15:48
6eaec7c
Compare
Choose a tag to compare

Improvements 🔧

Bugfixes 🐛

Internals 🔍