mirror of
https://github.com/php/php-src.git
synced 2024-12-20 15:30:38 +08:00
15 lines
228 B
Plaintext
15 lines
228 B
Plaintext
|
--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
|
||
|
|