Skip to content

Commit d11762b

Browse files
Cover array spread operator ase
1 parent 559ad18 commit d11762b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/fixtures/argument-type-declaration.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ function ()
141141

142142
fn(int $foo, string $bar) => true;
143143

144+
// @phpcsWarningOnNextLine
145+
fn(...$foo) => true;
146+
147+
fn(int ...$foo) => true;
148+
144149
// @phpcsWarningOnNextLine
145150
function ($foo)
146151
{

0 commit comments

Comments
 (0)