Skip to content

Commit

Permalink
Update compatibility patch
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod committed Jun 26, 2022
1 parent 6cbb486 commit e21e534
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions 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
Expand Down Expand Up @@ -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
Expand All @@ -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
----------------------------------------------------------------------


Expand Down Expand Up @@ -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,
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 (

0 comments on commit e21e534

Please sign in to comment.