diff --git a/tests/fixtures/argument-type-declaration.php b/tests/fixtures/argument-type-declaration.php index e48435e..64d70ea 100644 --- a/tests/fixtures/argument-type-declaration.php +++ b/tests/fixtures/argument-type-declaration.php @@ -279,6 +279,21 @@ function (PHPUnit\Exception $meh = null) use ($baz) } } + // @phpcsWarningOnNextLine + public function d(...$foo) { + + } + + // @phpcsWarningOnNextLine + public function e(...$foo) { + $bar = [1, 2, 3]; + + // @phpcsWarningOnNextLine + return function (...$bar) { + + }; + } + public function buildCallback(): callable { /**