1--TEST--
2BackedEnum::tryFrom() unknown hash
3--FILE--
4<?php
5
6enum Foo: string {
7    case Bar = 'B';
8}
9
10$s = 'A';
11$s++;
12
13var_dump(Foo::tryFrom($s));
14
15?>
16--EXPECT--
17enum(Foo::Bar)
18