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