1--TEST--
2Property constant expression lhs wrong type
3--FILE--
4<?php
5
6const A_prop = (42)->prop;
7var_dump(A_prop);
8
9const A_prop_nullsafe = (42)?->prop;
10var_dump(A_prop_nullsafe);
11
12?>
13--EXPECTF--
14Warning: Attempt to read property "prop" on int in %s on line %d
15NULL
16
17Warning: Attempt to read property "prop" on int in %s on line %d
18NULL
19