diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddMethodCallBasedStrictParamTypeRector/Fixture/skip_phpdoc_shape.php.inc b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddMethodCallBasedStrictParamTypeRector/Fixture/skip_phpdoc_shape.php.inc new file mode 100644 index 00000000000..a723080ae43 --- /dev/null +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddMethodCallBasedStrictParamTypeRector/Fixture/skip_phpdoc_shape.php.inc @@ -0,0 +1,21 @@ +returnsShape(); + $this->doBar($shape['hello']); + } + + /** + * @return array{'hello': string, 'world': int} + */ + private function returnsShape() { + + } + + private function doBar($param) { + + } +} diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictScalarReturnExprRector/Fixture/skip_phpdoc_shape.php.inc b/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictScalarReturnExprRector/Fixture/skip_phpdoc_shape.php.inc new file mode 100644 index 00000000000..ddc90b640e8 --- /dev/null +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictScalarReturnExprRector/Fixture/skip_phpdoc_shape.php.inc @@ -0,0 +1,18 @@ +returnsShape(); + return $shape['hello']; + } + + /** + * @return array{'hello': string, 'world': int} + */ + private function returnsShape() { + + } + +}