1--TEST--
2Constant propagation with nullsafe operator
3--FILE--
4<?php
5
6class Bar { const FOO = "foo"; }
7
8try {
9    Bar::FOO?->length();
10} catch (Error $e) {
11    echo $e->getMessage(), "\n";
12}
13
14?>
15--EXPECT--
16Call to a member function length() on string
17