How to check a PHP enum type with instanceof
When you need to check a PHP enum type, you can do it like this.
GGAMI
if($item instanceof UnitEnum) {
ray('enum type');
}When you need to check a PHP enum type, you can do it like this.
When you need to check a PHP enum type, you can do it like this.
if($item instanceof UnitEnum) {
ray('enum type');
}When you need to check a PHP enum type, you can do it like this.