xref: /PHP-8.0/Zend/zend_closures.stub.php (revision 7aa2d351)
1<?php
2
3/** @generate-function-entries */
4
5final class Closure
6{
7    private function __construct() {}
8
9    public static function bind(
10        Closure $closure,
11        ?object $newThis,
12        object|string|null $newScope = "static"
13    ): ?Closure {}
14
15    public function bindTo(?object $newThis, object|string|null $newScope = "static"): ?Closure {}
16
17    public function call(object $newThis, mixed ...$args): mixed {}
18
19    public static function fromCallable(callable $callback): Closure {}
20}
21