File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
tests/DoctrineIntegration/ODM Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 55use PHPStan \Testing \TypeInferenceTestCase ;
66use 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
You can’t perform that action at this time.
0 commit comments