From 9db0eb3e03a809564c87eec3f80938628f0c2c5e Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Mon, 12 Dec 2022 03:12:55 -0400 Subject: [PATCH] InvalidEnumMethod requires PHP8.1+ --- tests/DocumentationTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/DocumentationTest.php b/tests/DocumentationTest.php index bb9857c9a..3811396bb 100644 --- a/tests/DocumentationTest.php +++ b/tests/DocumentationTest.php @@ -310,6 +310,7 @@ class DocumentationTest extends TestCase case 'DuplicateEnumCaseValue': case 'InvalidEnumBackingType': case 'InvalidEnumCaseValue': + case 'InvalidEnumMethod': case 'NoEnumProperties': case 'OverriddenFinalConstant': $php_version = '8.1'; @@ -436,7 +437,7 @@ class DocumentationTest extends TestCase throw new UnexpectedValueException("Issues index not found"); } - $issues_index_contents = file($issues_index, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES); + $issues_index_contents = file($issues_index, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); if ($issues_index_contents === false) { throw new UnexpectedValueException("Issues index returned false"); }