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 29, 2022
1 parent 8e5919c commit 3641dd4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tests/php80-compatibility.patch
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ index 57d9f2b..5493471 100644
public function fcn(string $A): void
{
diff --git a/tests/fixed/PropertyDeclaration.php b/tests/fixed/PropertyDeclaration.php
index 5c3f27b..31ad57f 100644
index 5c3f27b..7821d5c 100644
--- a/tests/fixed/PropertyDeclaration.php
+++ b/tests/fixed/PropertyDeclaration.php
@@ -9,5 +9,10 @@ final class PropertyDeclaration
Expand All @@ -105,8 +105,8 @@ index 5c3f27b..31ad57f 100644
+
+ public function __construct(
+ public Foo $foo,
+ )
+ {}
+ ) {
+ }
}
diff --git a/tests/fixed/TrailingCommaOnFunctions.php b/tests/fixed/TrailingCommaOnFunctions.php
index 6e5cca4..c5fdccb 100644
Expand Down Expand Up @@ -348,18 +348,17 @@ index 10e6f34..5e26ed8 100644
+ private int|string|null $x = 1;
}
diff --git a/tests/input/PropertyDeclaration.php b/tests/input/PropertyDeclaration.php
index 0891e12..d52d574 100644
index 0891e12..4eb8164 100644
--- a/tests/input/PropertyDeclaration.php
+++ b/tests/input/PropertyDeclaration.php
@@ -10,4 +10,10 @@ final class PropertyDeclaration
@@ -10,4 +10,9 @@ final class PropertyDeclaration
public string $stringProperty;
public int $intProperty;
public ? string $nullableString = null;
+
+ public function __construct(
+ public Foo $foo
+ )
+ {
+ ) {
+ }
}
diff --git a/tests/input/TrailingCommaOnFunctions.php b/tests/input/TrailingCommaOnFunctions.php
Expand Down

0 comments on commit 3641dd4

Please sign in to comment.