dis-bench / src /php /php-src /Zend /tests /enum /backed-string.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
190 Bytes
--TEST--
String enum value
--FILE--
<?php
enum Foo: string {
case Bar = 'bar';
case Baz = 'baz';
}
echo Foo::Bar->value . "\n";
echo Foo::Baz->value . "\n";
?>
--EXPECT--
bar
baz