xref: /PHP-8.2/Zend/tests/closure_045.phpt (revision 7aacc705)
1--TEST--
2Closure 045: Closures created in static methods are not implicitly static
3--FILE--
4<?php
5
6class A {
7    static function foo() {
8        return function () {};
9    }
10}
11
12$a = A::foo();
13$a->bindTo(new A);
14
15echo "Done.\n";
16?>
17--EXPECT--
18Done.
19