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 231e649 commit 2f0881eCopy full SHA for 2f0881e
tests/traits/traits.phpt
@@ -238,9 +238,8 @@ trait T7
238
}
239
240
241
-T7::f(); // calls f like a static function with class name being the trait name
+// T7::f(); // Static call to non-static method is not allowed
242
243
-echo "-------\n";
244
T7::g();
245
246
/*
@@ -336,10 +335,6 @@ $v = 1
336
335
Inside T6::f
337
$v = 2
338
===================== Using a Trait without a Class =========================
339
-%AInside T7
340
-Inside T7
341
-Inside T7::f
342
--------
343
Inside T7
344
345
Inside T7::g
0 commit comments