- Output for 8.1.17 - 8.1.30, 8.2.4 - 8.2.25, 8.3.5 - 8.3.13
- bool(false) bool(true)
<?php
enum TestEnum: string {
case X = 'x';
}
var_dump(\is_a(TestEnum::class, \StringBackedEnum::class, true));
var_dump(\is_a(TestEnum::class, \BackedEnum::class, true));