File size: 171 Bytes
1e94262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
BackedEnum::from() unknown hash
--FILE--
<?php

enum Foo: string {
    case Bar = 'B';
}

$s = 'A';
$s++;

var_dump(Foo::from($s));

?>
--EXPECT--
enum(Foo::Bar)