Skip to content

Commit ca50bd1

Browse files
staabmondrejmirtes
authored andcommitted
Skip DocumentManagerTypeInferenceTest on PHP8+
1 parent 5e5fc80 commit ca50bd1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/DoctrineIntegration/ODM/DocumentManagerTypeInferenceTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,14 @@
55
use PHPStan\Testing\TypeInferenceTestCase;
66
use const PHP_VERSION_ID;
77

8-
class DocumentManagerTypeInferenceTest extends TypeInferenceTestCase
8+
final class DocumentManagerTypeInferenceTest extends TypeInferenceTestCase
99
{
1010

1111
/**
1212
* @return iterable<mixed>
1313
*/
1414
public function dataFileAsserts(): iterable
1515
{
16-
if (PHP_VERSION_ID >= 80000) {
17-
return [];
18-
}
19-
2016
yield from $this->gatherAssertTypes(__DIR__ . '/data/documentManagerDynamicReturn.php');
2117
yield from $this->gatherAssertTypes(__DIR__ . '/data/documentRepositoryDynamicReturn.php');
2218
yield from $this->gatherAssertTypes(__DIR__ . '/data/documentManagerMergeReturn.php');
@@ -33,6 +29,10 @@ public function testFileAsserts(
3329
...$args
3430
): void
3531
{
32+
if (PHP_VERSION_ID >= 80000) {
33+
self::markTestSkipped('Test requires PHP 7.');
34+
}
35+
3636
$this->assertFileAsserts($assertType, $file, ...$args);
3737
}
3838

0 commit comments

Comments
 (0)