From 22685082da52fa8bebd5f0b8b34fd927338f88d2 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Thu, 22 Oct 2026 10:33:50 +0200 Subject: [PATCH] [TypeDeclarationDocblocks] Register MergePhpstanDocTagIntoNativeRector in type declaration docblock level --- src/Config/Level/TypeDeclarationDocblocksLevel.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Config/Level/TypeDeclarationDocblocksLevel.php b/src/Config/Level/TypeDeclarationDocblocksLevel.php index 115ab0de631..de92142f523 100644 --- a/src/Config/Level/TypeDeclarationDocblocksLevel.php +++ b/src/Config/Level/TypeDeclarationDocblocksLevel.php @@ -21,6 +21,7 @@ use Rector\TypeDeclarationDocblocks\Rector\ClassMethod\DocblockGetterReturnArrayFromPropertyDocblockVarRector; use Rector\TypeDeclarationDocblocks\Rector\ClassMethod\DocblockReturnArrayFromDirectArrayInstanceRector; use Rector\TypeDeclarationDocblocks\Rector\ClassMethod\NarrowArrayCollectionUnionReturnDocblockRector; +use Rector\TypeDeclarationDocblocks\Rector\Property\MergePhpstanDocTagIntoNativeRector; final class TypeDeclarationDocblocksLevel { @@ -47,6 +48,7 @@ final class TypeDeclarationDocblocksLevel // move to rules based on existing docblocks, as more risky // property var + MergePhpstanDocTagIntoNativeRector::class, DocblockVarFromParamDocblockInConstructorRector::class, DocblockVarArrayFromGetterReturnRector::class, AddVarArrayDocblockFromDimFetchAssignRector::class,