summaryrefslogtreecommitdiff
path: root/Zend/zend_closures.stub.php
blob: 4bd93e241fa6e12e2115b0d038bff3ada9f24ce1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

/** @generate-class-entries */

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 {}
}