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 24f1e84 commit 1119248
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/php81-compatibility.patch
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..0f30e98 100644
index 5c3f27b..9703897 100644
--- a/tests/fixed/PropertyDeclaration.php
+++ b/tests/fixed/PropertyDeclaration.php
@@ -9,5 +9,10 @@ final class PropertyDeclaration
Expand All @@ -104,7 +104,7 @@ index 5c3f27b..0f30e98 100644
+ public string|null $nullableString = null;
+
+ public function __construct(
+ public readonly Foo $foo
+ public readonly Foo $foo,
+ ) {
+ }
}
Expand Down Expand Up @@ -348,7 +348,7 @@ index 10e6f34..5e26ed8 100644
+ private int|string|null $x = 1;
}
diff --git a/tests/input/PropertyDeclaration.php b/tests/input/PropertyDeclaration.php
index 0891e12..08f6897 100644
index 0891e12..acdc445 100644
--- a/tests/input/PropertyDeclaration.php
+++ b/tests/input/PropertyDeclaration.php
@@ -10,4 +10,9 @@ final class PropertyDeclaration
Expand All @@ -357,7 +357,7 @@ index 0891e12..08f6897 100644
public ? string $nullableString = null;
+
+ public function __construct(
+ public readonly Foo $foo
+ public readonly Foo $foo,
+ ) {
+ }
}
Expand Down

0 comments on commit 1119248

Please sign in to comment.