From 18bb990690c26a2b33889dccf06d4f838c47fac0 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 21 Sep 2023 15:26:31 +0200 Subject: [PATCH 1/2] Create skip_phpdoc_shape.php.inc --- .../Fixture/skip_phpdoc_shape.php.inc | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 rules-tests/TypeDeclaration/Rector/ClassMethod/AddMethodCallBasedStrictParamTypeRector/Fixture/skip_phpdoc_shape.php.inc 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) { + + } +} From 8322d2f13eb912aebe82f6f4f332f465667cf154 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 21 Sep 2023 15:29:07 +0200 Subject: [PATCH 2/2] Create skip_phpdoc_shape.php.inc --- .../Fixture/skip_phpdoc_shape.php.inc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictScalarReturnExprRector/Fixture/skip_phpdoc_shape.php.inc 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() { + + } + +}