Skip to content

Commit 258095c

Browse files
committed
This should have been in /nsrt/ from the start
1 parent d8bbaf8 commit 258095c

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

tests/PHPStan/Analyser/AnalyserIntegrationTest.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use PHPStan\Testing\PHPStanTestCase;
1212
use PHPStan\Type\Constant\ConstantIntegerType;
1313
use PHPStan\Type\Constant\ConstantStringType;
14-
use function array_filter;
1514
use function extension_loaded;
1615
use function restore_error_handler;
1716
use 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.

0 commit comments

Comments
 (0)