From 4da7f15909c0e82f15533a7d8ce854b9b17f946c Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Tue, 22 Oct 2024 12:09:25 -0300 Subject: [PATCH] Generic/SpreadOperatorSpacingAfter: improve code coverage --- .../Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc | 2 ++ .../WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc.fixed | 2 ++ .../Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.php | 1 + 3 files changed, 5 insertions(+) diff --git a/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc b/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc index d30cd847a9..6c86ac0b23 100644 --- a/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc +++ b/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc @@ -74,3 +74,5 @@ $map = array_map(strtolower(...), $map); // Ignore PHP 8.1 first class callable declarations. $map = array_map(strtolower( ... ), $map); + +bar(... /*comment*/$array); diff --git a/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc.fixed b/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc.fixed index dcce703d0f..1466a5dbdf 100644 --- a/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc.fixed +++ b/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc.fixed @@ -69,3 +69,5 @@ $map = array_map(strtolower(...), $map); // Ignore PHP 8.1 first class callable declarations. $map = array_map(strtolower( ... ), $map); + +bar(... /*comment*/$array); diff --git a/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.php b/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.php index 97217b37ca..21774f8dc9 100644 --- a/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.php +++ b/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.php @@ -44,6 +44,7 @@ public function getErrorList($testFile='') 60 => 1, 61 => 1, 66 => 2, + 78 => 1, ]; default: