1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

InvalidEnumMethod requires PHP8.1+

This commit is contained in:
Bruce Weirdan 2022-12-12 03:12:55 -04:00
parent 19a1005bc3
commit 9db0eb3e03
No known key found for this signature in database
GPG Key ID: CFC3AAB181751B0D

View File

@ -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");
}