1e94262
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | --TEST--
Enum __debugInfo
--FILE--
<?php
enum Foo {
case Bar;
public function __debugInfo(): array {
return $this->cases();
}
}
?>
--EXPECTF--
Fatal error: Enum Foo cannot include magic method __debugInfo in %s on line %d
|