Releases
1.2.6
New Features 🥳
[TypeDeclaration] Add isset(), empty(), and negation support on BoolReturnTypeFromBooleanStrictReturnsRector (#6339 )
[TypeDeclaration] Add NativeMethodReflection support on ReturnStrictTypeAnalyzer (#6344 )
[DX] Show paths not match any file/directory on ProcessCommand when given path not exists (#6307 )
Bugfixes 🐛
[TypeDeclaration] Convert inline @var tag to assert() (#6300 ), Thanks @carlos-granados !
Fix incorrect result after using RemoveByType in PhpDocInfo (#6301 ), Thanks @carlos-granados !
[TypeDeclaration] Skip nullable callable on TypedPropertyFromAssignsRector (#6308 )
Fix LocallyCalledStaticMethodToNonStaticRector when static function is called using the class name (#6310 ), Thanks @carlos-granados !
[Php81] Handle crash on ArrowFunction attribute on FirstClassCallableRector (#6313 )
[Performance] Reduce double traverse on StrictNativeFunctionReturnTypeAnalyzer (#6320 )
[PhpParser] Alternative PR for findInstancesOfScoped() to keep existing performance (#6324 )
[CodingStyle] Use double quote to escape quotes in EncapsedStringsToSprintfRector (#6326 )
[TypeDeclaration] Handle crash on func call not found on BoolReturnTypeFromBooleanStrictReturnsRector (#6327 )
Fix first class callable to use combineAcceptors() to avoid assert Arg instance error (#6330 )
[Php81] Allow used as assign expr on ReadOnlyPropertyRector (#6331 )
Skip arrow function in scoped search (#6333 )
[TypeDeclaration] Better approach for native type check on ReturnStrictTypeAnalyzer (#6343 )
[DeadCode] Skip extension load append variable on RemoveAlwaysTrueIfConditionRector (#6332 )
[TypeDeclaration] Remove only void type on ReturnedNodesReturnTypeInfererTypeInferer (#6340 )
[DeadCode] Skip indirect next line definition of @var on RemoveNonExistingVarAnnotationRector (#6348 )
rectorphp/rector-symfony 🎵
Added return type declaration rules for FormTypeInterface (#670 ), Thanks @stollr
rectorphp/rector-phpunit 🟢
[CodeQuality] Add NarrowSingleWillReturnCallbackRector (#374 )
[CodeQuality] Add SingleWithConsecutiveToWithRector (#370 )
[CodeQuality] Add NarrowIdenticalWithConsecutiveRector (#369 )
[CodeQuality] Add AddParentSetupCallOnSetupRector (#364 )
Include match() to invoke counting in WithConsecutiveRector (#362 )
Move WithConsecutiveRector to its PHPUnit100 namespace, CreateMockToAnonymousClassRector + PreferPHPUnitSelfCallRector to CodeQuality (#360 )
Add existing willReturnCallback() support to WithConsecutiveRector (#358 )
You can’t perform that action at this time.