Skip to content

Commit

Permalink
Update compatibility patch
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire committed Jan 10, 2025
1 parent a5f194a commit 06d32ba
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions tests/php73-compatibility.patch
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ index b98c372..35b7171 100644
tests/input/semicolon_spacing.php 3 0
tests/input/single-line-array-spacing.php 5 0
tests/input/spread-operator.php 6 0
@@ -46,17 +43,15 @@ tests/input/strings.php 3 0
@@ -46,17 +43,17 @@ tests/input/strings.php 3 0
tests/input/superfluous-naming.php 11 0
tests/input/test-case.php 8 0
tests/input/trailing_comma_on_array.php 1 0
Expand All @@ -67,8 +67,8 @@ index b98c372..35b7171 100644
-PHPCBF CAN FIX 378 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
+PHPCBF CAN FIX 335 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
-
-
diff --git a/tests/fixed/ControlStructures.php b/tests/fixed/ControlStructures.php
index f8f7f65..a653086 100644
--- a/tests/fixed/ControlStructures.php
Expand Down Expand Up @@ -196,6 +196,25 @@ index 71e0cfb..2151b17 100644
{
if (! $this->isAdmin) {
return null;
diff --git a/tests/fixed/arrow-functions-format.php b/tests/fixed/arrow-functions-format.php
index 4da39b8..dcb5a3e 100644
--- a/tests/fixed/arrow-functions-format.php
+++ b/tests/fixed/arrow-functions-format.php
@@ -32,12 +32,12 @@
];

$singleLineArrayReturn = Collection::map(
- static fn () => [1, 2]
+ static fn () => [1, 2],
);

$wrongMultiLineArrayReturn = Collection::map(
static fn () => [
1,
2,
- ]
+ ],
);
diff --git a/tests/fixed/example-class.php b/tests/fixed/example-class.php
index 4988dab..2df56a0 100644
--- a/tests/fixed/example-class.php
Expand Down

0 comments on commit 06d32ba

Please sign in to comment.