1--TEST-- 2Nullsafe chain in static property / method name 3--FILE-- 4<?php 5 6class Test { 7} 8 9$null = null; 10 11try { 12 Test::${$null?->foo}->bar; 13} catch (Error $e) { 14 echo $e->getMessage(), "\n"; 15} 16 17try { 18 Test::{$null?->foo}()->bar; 19} catch (Error $e) { 20 echo $e->getMessage(), "\n"; 21} 22 23?> 24--EXPECT-- 25Access to undeclared static property Test::$ 26Method name must be a string 27