Skip to content

Commit 05ebd4d

Browse files
committed
ContentEntityDeleteForm has @internal removed in 9.4.x as well
1 parent b135b55 commit 05ebd4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/src/Rules/ClassExtendsInternalClassRuleTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ public static function tearDownAfterClass(): void
4141
*/
4242
public function testRule(string $path, array $errorMessages): void
4343
{
44-
[$version] = explode('.', \Drupal::VERSION, 2);
45-
if ($version === '10'
44+
[$version, $minor] = explode('.', \Drupal::VERSION, 3);
45+
if (($version === '10' || ($version === '9' && (int) $minor >= 4))
4646
&& $path === __DIR__ . '/../../fixtures/drupal/modules/phpstan_fixtures/src/Form/ExtendsContentEntityDeleteForm.php') {
47-
self::markTestSkipped('@internal was removed in 10.0.x');
47+
self::markTestSkipped('@internal was removed in 10.0.x and 9.4.x');
4848
}
4949
$this->analyse([$path], $errorMessages);
5050
}

0 commit comments

Comments
 (0)