diff --git a/tests/php81-compatibility.patch b/tests/php81-compatibility.patch index 771076f7..5ec3c91e 100644 --- a/tests/php81-compatibility.patch +++ b/tests/php81-compatibility.patch @@ -70,6 +70,18 @@ index caf1dbb..fc734db 100644 { foreach ($items as $item) { if (! $item->isItem()) { +diff --git a/tests/fixed/ExampleBackedEnum.php b/tests/fixed/ExampleBackedEnum.php +index fe54eb9..cc38c54 100644 +--- a/tests/fixed/ExampleBackedEnum.php ++++ b/tests/fixed/ExampleBackedEnum.php +@@ -3,3 +3,7 @@ + declare(strict_types=1); + + namespace ExampleBackedEnum; ++ ++enum ExampleBackedEnum: int ++{ ++} diff --git a/tests/fixed/NamingCamelCase.php b/tests/fixed/NamingCamelCase.php index 57d9f2b..5493471 100644 --- a/tests/fixed/NamingCamelCase.php @@ -395,6 +407,18 @@ index 10e6f34..5e26ed8 100644 - private $x = 1; + private int|string|null $x = 1; } +diff --git a/tests/input/ExampleBackedEnum.php b/tests/input/ExampleBackedEnum.php +index fe54eb9..0c47286 100644 +--- a/tests/input/ExampleBackedEnum.php ++++ b/tests/input/ExampleBackedEnum.php +@@ -3,3 +3,7 @@ + declare(strict_types=1); + + namespace ExampleBackedEnum; ++ ++enum ExampleBackedEnum : int ++{ ++} diff --git a/tests/input/PropertyDeclaration.php b/tests/input/PropertyDeclaration.php index 0891e12..acdc445 100644 --- a/tests/input/PropertyDeclaration.php