File tree Expand file tree Collapse file tree 2 files changed +0
-15
lines changed
Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change 1111use PHPStan \Testing \PHPStanTestCase ;
1212use PHPStan \Type \Constant \ConstantIntegerType ;
1313use PHPStan \Type \Constant \ConstantStringType ;
14- use function array_filter ;
1514use function extension_loaded ;
1615use function restore_error_handler ;
1716use function sprintf ;
@@ -1481,20 +1480,6 @@ public function testBug11913(): void
14811480 $ this ->assertNoErrors ($ errors );
14821481 }
14831482
1484- public function testBug12083InArrayEnum (): void
1485- {
1486- if (PHP_VERSION_ID < 80100 ) {
1487- $ this ->markTestSkipped ('Test requires PHP 8.1. ' );
1488- }
1489-
1490- $ errors = $ this ->runAnalyse (__DIR__ . '/data/enum-in-array.php ' );
1491-
1492- $ filteredErrors = array_filter ($ errors , static fn (Error $ error ): bool => $ error ->getIdentifier () !== 'function.alreadyNarrowedType '
1493- && $ error ->getIdentifier () !== 'function.impossibleType ' );
1494-
1495- $ this ->assertNoErrors ($ filteredErrors );
1496- }
1497-
14981483 /**
14991484 * @param string[]|null $allAnalysedFiles
15001485 * @return Error[]
File renamed without changes.
You can’t perform that action at this time.
0 commit comments