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