diff --git a/tests/ReturnTypeTest.php b/tests/ReturnTypeTest.php index 2557fdf8a..3bc88b760 100644 --- a/tests/ReturnTypeTest.php +++ b/tests/ReturnTypeTest.php @@ -1279,6 +1279,26 @@ class ReturnTypeTest extends TestCase return $t; }', ], + 'neverReturnType' => [ + 'code' => ' [], + 'ignored_issues' => [], + 'php_version' => '8.1', + ], ]; } @@ -1807,6 +1827,36 @@ class ReturnTypeTest extends TestCase 'ignored_issues' => [], 'php_version' => '8.0', ], + 'implicitReturnFromFunctionWithNeverReturnType' => [ + 'code' => <<<'PHP' + 'InvalidReturnType', + 'ignored_issues' => [], + 'php_version' => '8.1', + ], + 'implicitReturnFromFunctionWithNeverReturnType2' => [ + 'code' => <<<'PHP' + 'InvalidReturnType', + 'ignored_issues' => [], + 'php_version' => '8.1', + ], ]; } }