xref: /PHP-7.4/Zend/tests/closure_023.phpt (revision d679f022)
1--TEST--
2Closure 023: Closure declared in statically called method
3--FILE--
4<?php
5class foo {
6    public static function bar() {
7        $func = function() { echo "Done"; };
8        $func();
9    }
10}
11foo::bar();
12--EXPECT--
13Done
14