Skip to content

Commit 529c84f

Browse files
authored
[TypeDeclaration] Register AddReturnDocblockForScalarArrayFromAssignsRector to type declaration set (#7166)
1 parent 5069f53 commit 529c84f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Config/Level/TypeDeclarationLevel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use Rector\TypeDeclaration\Rector\ClassMethod\AddMethodCallBasedStrictParamTypeRector;
1919
use Rector\TypeDeclaration\Rector\ClassMethod\AddParamTypeBasedOnPHPUnitDataProviderRector;
2020
use Rector\TypeDeclaration\Rector\ClassMethod\AddParamTypeFromPropertyTypeRector;
21+
use Rector\TypeDeclaration\Rector\ClassMethod\AddReturnDocblockForScalarArrayFromAssignsRector;
2122
use Rector\TypeDeclaration\Rector\ClassMethod\AddReturnTypeDeclarationBasedOnParentClassMethodRector;
2223
use Rector\TypeDeclaration\Rector\ClassMethod\AddReturnTypeFromTryCatchTypeRector;
2324
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;
@@ -143,7 +144,7 @@ final class TypeDeclarationLevel
143144

144145
// possibly based on docblocks, but also helpful, intentionally last
145146
AddArrayFunctionClosureParamTypeRector::class,
146-
147147
TypedPropertyFromDocblockSetUpDefinedRector::class,
148+
AddReturnDocblockForScalarArrayFromAssignsRector::class,
148149
];
149150
}

0 commit comments

Comments
 (0)