From c0e87ec5a936e4479c12e5e33ef63579e844caee Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 22 Aug 2025 22:23:18 +0700 Subject: [PATCH] [TypeDeclaration] Register AddReturnDocblockForScalarArrayFromAssignsRector to type declaration set --- src/Config/Level/TypeDeclarationLevel.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Config/Level/TypeDeclarationLevel.php b/src/Config/Level/TypeDeclarationLevel.php index d1f27f9c087..60246def2dd 100644 --- a/src/Config/Level/TypeDeclarationLevel.php +++ b/src/Config/Level/TypeDeclarationLevel.php @@ -18,6 +18,7 @@ use Rector\TypeDeclaration\Rector\ClassMethod\AddMethodCallBasedStrictParamTypeRector; use Rector\TypeDeclaration\Rector\ClassMethod\AddParamTypeBasedOnPHPUnitDataProviderRector; use Rector\TypeDeclaration\Rector\ClassMethod\AddParamTypeFromPropertyTypeRector; +use Rector\TypeDeclaration\Rector\ClassMethod\AddReturnDocblockForScalarArrayFromAssignsRector; use Rector\TypeDeclaration\Rector\ClassMethod\AddReturnTypeDeclarationBasedOnParentClassMethodRector; use Rector\TypeDeclaration\Rector\ClassMethod\AddReturnTypeFromTryCatchTypeRector; use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector; @@ -143,7 +144,7 @@ final class TypeDeclarationLevel // possibly based on docblocks, but also helpful, intentionally last AddArrayFunctionClosureParamTypeRector::class, - TypedPropertyFromDocblockSetUpDefinedRector::class, + AddReturnDocblockForScalarArrayFromAssignsRector::class, ]; }