dis-bench / src /php /php-src /Zend /tests /enum /backed-invalid.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
165 Bytes
--TEST--
Invalid enum backing type
--FILE--
<?php
enum Foo: Bar {}
?>
--EXPECTF--
Fatal error: Enum backing type must be int or string, Bar given in %s on line %d