diff --git a/rules/TypedCollections/Rector/ClassMethod/CollectionDocblockGenericTypeRector.php b/rules/TypedCollections/Rector/ClassMethod/CollectionDocblockGenericTypeRector.php index b738d8d4..081e8189 100644 --- a/rules/TypedCollections/Rector/ClassMethod/CollectionDocblockGenericTypeRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/CollectionDocblockGenericTypeRector.php @@ -161,7 +161,7 @@ public function refactor(Node $node): ?ClassMethod $this->docBlockUpdater->updateRefactoredNodeWithPhpDocInfo($node); - return null; + return $node; } /** diff --git a/rules/TypedCollections/Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php b/rules/TypedCollections/Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php index dbc16b41..2d1119f9 100644 --- a/rules/TypedCollections/Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php +++ b/rules/TypedCollections/Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php @@ -89,7 +89,7 @@ public function refactor(Node $node): ?FuncCall } if ($this->isName($node->name, 'array_filter')) { - $this->refactorArrayFilter($node); + return $this->refactorArrayFilter($node); } return null;