Skip to content

Released Rector 1.1.0

Latest
Compare
Choose a tag to compare
@samsonasik samsonasik released this 18 May 11:44
· 78 commits to main since this release

New Features 馃コ

  • [PHPStan] Bump to PHPStan 1.11 (#5883)

Bugfixes 馃悰

  • [CodeQuality] Skip increment variable on else on TernaryFalseExpressionToIfRector (#5867)
  • [CodeQuality] Skip on property and class const on CallableThisArrayToAnonymousFunctionRector (#5869)
  • [NodeTypeResolver] Using built int ->isArray()->yes() on ArrayTypeAnalyzer::isArrayType() (#5870)
  • Fix "method x was not found in reflection of class" (#5871), Thanks @staabm!
  • [NodeTypeResolver] Clean up array check on NameTypeResolver (#5872)
  • [NodeTypeResolver] Clean up "this" from NameTypeResolver, as not from Name node (#5873)
  • [TypeDeclaration] Skip array by doc with different assign on ReturnTypeFromStrictNewArrayRector (#5875)
  • [TypeDeclaration] Skip possible array on StrictStringParamConcatRector (#5876)
  • [Performance] Ensure call $reflector->reflectAllClasses() once on Worker take 3 (#5878)
  • [Performance] Call cached class names collection on FamilyRelationsAnalyzer (#5879)
  • [NodeTypeResolver] Clean up resolve cache class name key (#5880)
  • [NodeTypeResolver] No need json_decode/json_encode for cache class name collection (#5881)
  • [TypeDeclaration] Handle crash on interface Mixin on ReturnTypeFromStrictConstantReturnRector (#5884)
  • [PHPStan] Handle PHPStan internal ShouldNotHappenException on FamilyRelationsAnalyzer and PHPStanNodeScopeResolver (#5885)
  • [NodeTypeResolver] No need to resolve class name on anonymous classes (#5886)
  • [PHPStan] Fix missingType.generics notice on phpstan.neon on PHPStan 1.11 (#5888)
  • [TypeDeclaration] Skip unitialized property on EmptyOnNullableObjectToInstanceOfRector (#5889)
  • [Php80] Skip remove non-mixed type doc on MixedTypeRector (#5874)
  • [TypeDeclaration] Add test for nullable object usage on AddReturnTypeDeclarationRector (#5887)
  • [Configuration] Add missing LevelSetList::UP_TO_PHP_84 on PhpLevelSetResolver::resolveFromPhpVersion() (#5890)