diff --git a/rules-tests/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector/Fixture/superglobals_in_arrow_function.php.inc b/rules-tests/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector/Fixture/superglobals_in_arrow_function.php.inc new file mode 100644 index 00000000..bcb37cd7 --- /dev/null +++ b/rules-tests/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector/Fixture/superglobals_in_arrow_function.php.inc @@ -0,0 +1,27 @@ + $_SERVER['destroy']['retrieved'][] = $model->my_id); + } +} +?> +----- +my_id; + }); + } +} +?> diff --git a/rules-tests/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector/Fixture/conditional_return_type.php.inc b/rules-tests/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector/Fixture/conditional_return_type.php.inc new file mode 100644 index 00000000..38a8ef29 --- /dev/null +++ b/rules-tests/DowngradePhp80/Rector/FunctionLike/DowngradeMixedTypeDeclarationRector/Fixture/conditional_return_type.php.inc @@ -0,0 +1,35 @@ +|scalar + * + * @return (TValue is scalar ? array|scalar : array) + */ + public function resolveValue(): mixed + { + } +} + +?> +----- +|scalar + * + * @return (TValue is scalar ? array|scalar : array) + */ + public function resolveValue() + { + } +} + +?> diff --git a/rules-tests/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector/Fixture/named_argument_on_parent_construct.php.inc b/rules-tests/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector/Fixture/named_argument_on_parent_construct.php.inc new file mode 100644 index 00000000..940834b9 --- /dev/null +++ b/rules-tests/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector/Fixture/named_argument_on_parent_construct.php.inc @@ -0,0 +1,35 @@ + +----- + diff --git a/rules-tests/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector/Source/SomeAttributes.php b/rules-tests/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector/Source/SomeAttributes.php new file mode 100644 index 00000000..0bb13841 --- /dev/null +++ b/rules-tests/DowngradePhp80/Rector/MethodCall/DowngradeNamedArgumentRector/Source/SomeAttributes.php @@ -0,0 +1,10 @@ +