1--TEST--
2Property not found error
3--FILE--
4<?php
5
6enum A {
7    case B;
8}
9
10const A_prop = A::B->prop;
11var_dump(A_prop);
12
13const A_prop_nullsafe = A::B?->prop;
14var_dump(A_prop_nullsafe);
15
16?>
17--EXPECTF--
18Warning: Undefined property: A::$prop in %s on line %d
19NULL
20
21Warning: Undefined property: A::$prop in %s on line %d
22NULL
23