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