Skip to content

Commit 8c06bdf

Browse files
committed
Remove superfluous check for \UnitEnum::class
It will always be available now that we require XP core 10.8+
1 parent 9ccadb6 commit 8c06bdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/php/lang/reflection/unittest/TypeTest.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function enum_kind_for_xpenums() {
102102
Assert::equals(Kind::$ENUM, $t->kind());
103103
}
104104

105-
#[Test, Action(eval: 'new VerifyThat(fn() => !self::$ENUMS && interface_exists(\UnitEnum::class, false))')]
105+
#[Test, Action(eval: 'new VerifyThat(fn() => !self::$ENUMS)')]
106106
public function enum_kind_for_enum_lookalikes() {
107107
$t= $this->declare('K_LE', ['kind' => 'class', 'implements' => [\UnitEnum::class]], '{ public static $M; }');
108108
Assert::equals(Kind::$ENUM, $t->kind());

0 commit comments

Comments
 (0)