blob: 089ec8cc4d4489c35f734bbd0ef4fe0933e43a4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--TEST--
Closure 023: Closure declared in statically called method
--FILE--
<?php
class foo {
public static function bar() {
$func = function() { echo "Done"; };
$func();
}
}
foo::bar();
?>
--EXPECT--
Done
|