1--TEST--
2GH-8661: Nullsafe in coalesce triggers undefined variable error
3--FILE--
4<?php
5
6var_dump($a?->foo ?? null);
7
8?>
9--EXPECT--
10NULL
11