1--TEST--
2Test failure of updating class constants
3--FILE--
4<?php
5
6enum Foo: string {
7 const Bar = NONEXISTENT;
8}
9
10var_dump(Foo::Bar);
11
12?>
13--EXPECTF--
14Fatal error: Uncaught Error: Undefined constant "NONEXISTENT" in %s:%d
15Stack trace:
16#0 {main}
17 thrown in %s on line %d
18