php-src/Zend/zend_closures.stub.php
Nikita Popov 008bfcc7ba Use NO_DYNAMIC_PROPERTIES for Closure
Instead of manually implementing this, use the standard mechanism.
This has minor behavior changes (e.g. doing an isset() will now
return false instead of throwing) which are more in line with
typical behavior.
2021-05-14 14:48:56 +02:00

21 lines
522 B
PHP

<?php
/** @generate-class-entries */
/** @strict-properties */
final class Closure
{
private function __construct() {}
public static function bind(
Closure $closure,
?object $newThis,
object|string|null $newScope = "static"
): ?Closure {}
public function bindTo(?object $newThis, object|string|null $newScope = "static"): ?Closure {}
public function call(object $newThis, mixed ...$args): mixed {}
public static function fromCallable(callable $callback): Closure {}
}