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 5267c48 commit 6ae9aa8Copy full SHA for 6ae9aa8
Zend/tests/first_class_callable_005.phpt
@@ -4,23 +4,23 @@ First Class Callable from Magic
4
<?php
5
class Foo {
6
public function __call($method, $args) {
7
- return "OK CALL\n";
+ return $method;
8
}
9
10
public static function __callStatic($method, $args) {
11
- return "OK CALL STATIC\n";
12
13
14
15
$foo = new Foo;
16
-$bar = $foo->anything(...);
+$bar = $foo->anythingInstance(...);
17
18
-echo $bar();
+echo $bar() . PHP_EOL;
19
20
-$qux = Foo::anything(...);
+$qux = Foo::anythingStatic(...);
21
22
echo $qux();
23
?>
24
--EXPECT--
25
-OK CALL
26
-OK CALL STATIC
+anythingInstance
+anythingStatic
0 commit comments