dis-bench / src /php /php-src /Zend /tests /enum /backed-int-case-without-value.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
218 Bytes
--TEST--
Int backed enums with case without value
--FILE--
<?php
enum Foo: int {
case Bar;
}
var_dump(Foo::Bar->value);
?>
--EXPECTF--
Fatal error: Case Bar of backed enum Foo must have a value in %s on line %d