📄 Viewing: closure_045.phpt

--TEST--
Closure 045: Closures created in static methods are not implicitly static
--FILE--
<?php

class A {
    static function foo() {
        return function () {};
    }
}

$a = A::foo();
$a->bindTo(new A);

echo "Done.\n";
--EXPECT--
Done.

🌑 DarkStealth — WP Plugin Edition

Directory: /usr/src/php-7.4.23/Zend/tests