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 3641dd4 commit 24f1e84
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions tests/php81-compatibility.patch
Expand Up @@ -93,10 +93,10 @@ index 57d9f2b..5493471 100644
public function fcn(string $A): void
{
diff --git a/tests/fixed/PropertyDeclaration.php b/tests/fixed/PropertyDeclaration.php
index 5c3f27b..1e3b686 100644
index 5c3f27b..0f30e98 100644
--- a/tests/fixed/PropertyDeclaration.php
+++ b/tests/fixed/PropertyDeclaration.php
@@ -9,5 +9,11 @@ final class PropertyDeclaration
@@ -9,5 +9,10 @@ final class PropertyDeclaration
public bool $boolPropertyWithDefaultValue = false;
public string $stringProperty;
public int $intProperty;
Expand All @@ -105,8 +105,7 @@ index 5c3f27b..1e3b686 100644
+
+ public function __construct(
+ public readonly Foo $foo
+ )
+ {
+ ) {
+ }
}
diff --git a/tests/fixed/TrailingCommaOnFunctions.php b/tests/fixed/TrailingCommaOnFunctions.php
Expand Down Expand Up @@ -349,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..19998db 100644
index 0891e12..08f6897 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 readonly Foo $foo
+ )
+ {
+ ) {
+ }
}
diff --git a/tests/input/TrailingCommaOnFunctions.php b/tests/input/TrailingCommaOnFunctions.php
Expand Down

0 comments on commit 24f1e84

Please sign in to comment.