Skip to content

Commit 8a5febb

Browse files
Add missing tests
1 parent 7880c1e commit 8a5febb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/fixtures/argument-type-declaration.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,21 @@ function (PHPUnit\Exception $meh = null) use ($baz)
279279
}
280280
}
281281

282+
// @phpcsWarningOnNextLine
283+
public function d(...$foo) {
284+
285+
}
286+
287+
// @phpcsWarningOnNextLine
288+
public function e(...$foo) {
289+
$bar = [1, 2, 3];
290+
291+
// @phpcsWarningOnNextLine
292+
return function (...$bar) {
293+
294+
};
295+
}
296+
282297
public function buildCallback(): callable {
283298

284299
/**

0 commit comments

Comments
 (0)