11diff --git a/tests/expected_report.txt b/tests/expected_report.txt
2- index c644926..7d122d2 100644
2+ index 1d5a7d3..91e97e7 100644
33--- a/tests/expected_report.txt
44+++ b/tests/expected_report.txt
55@@ -15,7 +15,7 @@ tests/input/ControlStructures.php 28 0
@@ -23,14 +23,11 @@ index c644926..7d122d2 100644
2323 tests/input/null_coalesce_operator.php 3 0
2424 tests/input/optimized-functions.php 1 0
2525 tests/input/PropertyDeclaration.php 6 0
26- @@ -35,20 +35,20 @@ tests/input/semicolon_spacing.php 3 0
27- tests/input/single-line-array-spacing.php 5 0
28- tests/input/spread-operator.php 6 0
29- tests/input/static-closures.php 1 0
30- tests/input/strings.php 1 0
26+ @@ -39,16 +39,17 @@ tests/input/strings.php 1 0
3127 tests/input/superfluous-naming.php 11 0
3228 tests/input/test-case.php 8 0
3329 tests/input/trailing_comma_on_array.php 1 0
30+ + tests/input/TrailingCommaOnFunctions.php 2 0
3431 tests/input/traits-uses.php 11 0
3532- tests/input/type-hints.php 7 0
3633+ tests/input/type-hints.php 8 0
@@ -40,13 +37,45 @@ index c644926..7d122d2 100644
4037 tests/input/UselessConditions.php 20 0
4138 ----------------------------------------------------------------------
4239- A TOTAL OF 381 ERRORS AND 0 WARNINGS WERE FOUND IN 42 FILES
43- + A TOTAL OF 390 ERRORS AND 0 WARNINGS WERE FOUND IN 42 FILES
40+ + A TOTAL OF 392 ERRORS AND 0 WARNINGS WERE FOUND IN 43 FILES
4441 ----------------------------------------------------------------------
4542- PHPCBF CAN FIX 315 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
46- + PHPCBF CAN FIX 324 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
43+ + PHPCBF CAN FIX 326 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
4744 ----------------------------------------------------------------------
4845
4946
47+ diff --git a/tests/fixed/TrailingCommaOnFunctions.php b/tests/fixed/TrailingCommaOnFunctions.php
48+ index f3ffa91..67173b3 100644
49+ --- a/tests/fixed/TrailingCommaOnFunctions.php
50+ +++ b/tests/fixed/TrailingCommaOnFunctions.php
51+ @@ -37,8 +37,9 @@ class TrailingCommaOnFunctions
52+
53+ $class = new TrailingCommaOnFunctions();
54+
55+ + // phpcs:ignore Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma
56+ $class->a(1);
57+
58+ $class->a(
59+ - 1
60+ + 1,
61+ );
62+ diff --git a/tests/fixed/arrow-functions-format.php b/tests/fixed/arrow-functions-format.php
63+ index a45074f..4da39b8 100644
64+ --- a/tests/fixed/arrow-functions-format.php
65+ +++ b/tests/fixed/arrow-functions-format.php
66+ @@ -18,10 +18,10 @@ $returningObject = static fn () => new stdClass();
67+
68+ $multiLineArrowFunctions = Collection::from([1, 2])
69+ ->map(
70+ - static fn (int $v): int => $v * 2
71+ + static fn (int $v): int => $v * 2,
72+ )
73+ ->reduce(
74+ - static fn (int $tmp, int $v): int => $tmp + $v
75+ + static fn (int $tmp, int $v): int => $tmp + $v,
76+ );
77+
78+ $thisIsNotAnArrowFunction = [$this->fn => 'value'];
5079diff --git a/tests/fixed/example-class.php b/tests/fixed/example-class.php
5180index 998e51d..7866379 100644
5281--- a/tests/fixed/example-class.php
@@ -69,6 +98,17 @@ index 998e51d..7866379 100644
6998
7099 /** @var ControlStructureSniff|int|string|null */
71100 private $baxBax;
101+ diff --git a/tests/fixed/namespaces-spacing.php b/tests/fixed/namespaces-spacing.php
102+ index d42bbfe..36cbae2 100644
103+ --- a/tests/fixed/namespaces-spacing.php
104+ +++ b/tests/fixed/namespaces-spacing.php
105+ @@ -16,5 +16,5 @@ use const DATE_RFC3339;
106+ strrev(
107+ (new DateTimeImmutable('@' . time(), new DateTimeZone('UTC')))
108+ ->sub(new DateInterval('P1D'))
109+ - ->format(DATE_RFC3339)
110+ + ->format(DATE_RFC3339),
111+ );
72112diff --git a/tests/fixed/new_with_parentheses.php b/tests/fixed/new_with_parentheses.php
73113index 6e81bbe..47a06ec 100644
74114--- a/tests/fixed/new_with_parentheses.php
@@ -129,3 +169,45 @@ index 10e6f34..bfa6d4f 100644
129169
130170 /**
131171 * @param Iterator $iterator
172+ diff --git a/tests/input/TrailingCommaOnFunctions.php b/tests/input/TrailingCommaOnFunctions.php
173+ index f3ffa91..8adcedf 100644
174+ --- a/tests/input/TrailingCommaOnFunctions.php
175+ +++ b/tests/input/TrailingCommaOnFunctions.php
176+ @@ -37,7 +37,8 @@ class TrailingCommaOnFunctions
177+
178+ $class = new TrailingCommaOnFunctions();
179+
180+ - $class->a(1);
181+ + // phpcs:ignore Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma
182+ + $class->a(1,);
183+
184+ $class->a(
185+ 1
186+ diff --git a/tests/input/arrow-functions-format.php b/tests/input/arrow-functions-format.php
187+ index 8a358e8..d3903ff 100644
188+ --- a/tests/input/arrow-functions-format.php
189+ +++ b/tests/input/arrow-functions-format.php
190+ @@ -18,10 +18,10 @@ $returningObject = static fn () => new stdClass();
191+
192+ $multiLineArrowFunctions = Collection::from([1, 2])
193+ ->map(
194+ - static fn (int $v): int => $v * 2
195+ + static fn (int $v): int => $v * 2,
196+ )
197+ ->reduce(
198+ - static fn (int $tmp, int $v): int => $tmp + $v
199+ + static fn (int $tmp, int $v): int => $tmp + $v,
200+ );
201+
202+ $thisIsNotAnArrowFunction = [$this->fn => 'value'];
203+ diff --git a/tests/input/namespaces-spacing.php b/tests/input/namespaces-spacing.php
204+ index e1ab639..e7be018 100644
205+ --- a/tests/input/namespaces-spacing.php
206+ +++ b/tests/input/namespaces-spacing.php
207+ @@ -11,5 +11,5 @@ use const DATE_RFC3339;
208+ strrev(
209+ (new DateTimeImmutable('@' . time(), new DateTimeZone('UTC')))
210+ ->sub(new DateInterval('P1D'))
211+ - ->format(DATE_RFC3339)
212+ + ->format(DATE_RFC3339),
213+ );
0 commit comments