From 8a5febb67468f909086f954202935c4dd9528685 Mon Sep 17 00:00:00 2001 From: Antonio Mangiacapra <11173091+antonioeatgoat@users.noreply.github.com> Date: Fri, 24 Feb 2023 12:28:52 +0100 Subject: [PATCH] Add missing tests --- tests/fixtures/argument-type-declaration.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 { /**