From e21e534ef8c8eb4823b876e64d57b0151c8bb61b Mon Sep 17 00:00:00 2001 From: Simon Podlipsky Date: Sun, 26 Jun 2022 14:33:37 +0300 Subject: [PATCH] Update compatibility patch --- tests/php81-compatibility.patch | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/php81-compatibility.patch b/tests/php81-compatibility.patch index 45be5fe6..ebae261f 100644 --- a/tests/php81-compatibility.patch +++ b/tests/php81-compatibility.patch @@ -1,5 +1,5 @@ diff --git a/tests/expected_report.txt b/tests/expected_report.txt -index 476a58b..54630dd 100644 +index 476a58b..c17045a 100644 --- a/tests/expected_report.txt +++ b/tests/expected_report.txt @@ -14,40 +14,43 @@ tests/input/constants-var.php 6 0 @@ -40,7 +40,7 @@ index 476a58b..54630dd 100644 tests/input/superfluous-naming.php 11 0 tests/input/test-case.php 8 0 tests/input/trailing_comma_on_array.php 1 0 -+tests/input/TrailingCommaOnFunctions.php 2 1 ++tests/input/TrailingCommaOnFunctions.php 1 1 tests/input/traits-uses.php 11 0 -tests/input/type-hints.php 4 0 +tests/input/type-hints.php 9 0 @@ -51,10 +51,10 @@ index 476a58b..54630dd 100644 +tests/input/UselessConditions.php 21 0 ---------------------------------------------------------------------- -A TOTAL OF 377 ERRORS AND 0 WARNINGS WERE FOUND IN 41 FILES -+A TOTAL OF 412 ERRORS AND 1 WARNING WERE FOUND IN 44 FILES ++A TOTAL OF 414 ERRORS AND 1 WARNING WERE FOUND IN 44 FILES ---------------------------------------------------------------------- -PHPCBF CAN FIX 313 OF THESE SNIFF VIOLATIONS AUTOMATICALLY -+PHPCBF CAN FIX 346 OF THESE SNIFF VIOLATIONS AUTOMATICALLY ++PHPCBF CAN FIX 347 OF THESE SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- @@ -119,7 +119,7 @@ index 6a4a56f..13aadf3 100644 } @@ -28,6 +28,6 @@ function a(int $arg) use ($class): void { } - + function b(int $arg) use ( - $class + $class, @@ -143,7 +143,7 @@ index a45074f..4da39b8 100644 --- a/tests/fixed/arrow-functions-format.php +++ b/tests/fixed/arrow-functions-format.php @@ -18,10 +18,10 @@ $returningObject = static fn () => new stdClass(); - + $multiLineArrowFunctions = Collection::from([1, 2]) ->map( - static fn (int $v): int => $v * 2 @@ -153,7 +153,7 @@ index a45074f..4da39b8 100644 - static fn (int $tmp, int $v): int => $tmp + $v + static fn (int $tmp, int $v): int => $tmp + $v, ); - + $thisIsNotAnArrowFunction = [$this->fn => 'value']; diff --git a/tests/fixed/example-class.php b/tests/fixed/example-class.php index 998e51d..56cd902 100644 @@ -384,27 +384,27 @@ index 6a4a56f..cec7683 100644 --- a/tests/input/TrailingCommaOnFunctions.php +++ b/tests/input/TrailingCommaOnFunctions.php @@ -6,7 +6,7 @@ namespace Doctrine; - + class TrailingCommaOnFunctions { - public function a(int $arg): void + public function a(int $arg,): void { } - + @@ -18,13 +18,13 @@ class TrailingCommaOnFunctions - + $class = new TrailingCommaOnFunctions(); - + -$class->a(1); +$class->a(1,); - + $class->a( 1 ); - + -function a(int $arg) use ($class): void { +function a(int $arg) use ($class,): void { } - + function b(int $arg) use (