dis-bench / src /php /php-src /Zend /tests /enum /__get.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
229 Bytes
--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