dis-bench / src /php /php-src /Zend /tests /enum /backed-int.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
178 Bytes
--TEST--
Int enum value
--FILE--
<?php
enum Foo: int {
case Bar = 0;
case Baz = 1;
}
var_dump(Foo::Bar->value);
var_dump(Foo::Baz->value);
?>
--EXPECT--
int(0)
int(1)