Skip to content

Commit 760c450

Browse files
rodrigoprimojrfnl
authored andcommitted
Generic/SpreadOperatorSpacingAfter: improve code coverage
1 parent ddf5f72 commit 760c450

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,5 @@ $map = array_map(strtolower(...), $map);
7474

7575
// Ignore PHP 8.1 first class callable declarations.
7676
$map = array_map(strtolower( ... ), $map);
77+
78+
bar(... /*comment*/$array);

src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc.fixed

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,5 @@ $map = array_map(strtolower(...), $map);
6969

7070
// Ignore PHP 8.1 first class callable declarations.
7171
$map = array_map(strtolower( ... ), $map);
72+
73+
bar(... /*comment*/$array);

src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function getErrorList($testFile='')
4444
60 => 1,
4545
61 => 1,
4646
66 => 2,
47+
78 => 1,
4748
];
4849

4950
default:

0 commit comments

Comments
 (0)