We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 692826d commit b45fafeCopy full SHA for b45fafe
Zend/tests/nullsafe_operator/026.phpt
@@ -0,0 +1,26 @@
1
+--TEST--
2
+Nullsafe chain in static property / method name
3
+--FILE--
4
+<?php
5
+
6
+class Test {
7
+}
8
9
+$null = null;
10
11
+try {
12
+ Test::${$null?->foo}->bar;
13
+} catch (Error $e) {
14
+ echo $e->getMessage(), "\n";
15
16
17
18
+ Test::{$null?->foo}()->bar;
19
20
21
22
23
+?>
24
+--EXPECT--
25
+Access to undeclared static property Test::$
26
+Method name must be a string
0 commit comments