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

Class Closure
{
    private function __construct() {}

    /** @return ?Closure */
    static function bind(Closure $closure, ?object $newthis, $newscope = UNKNOWN) {}

    /** @return ?Closure */
    function bindTo(?object $newthis, $newscope = UNKNOWN) {}

    /** @return mixed */
    function call(object $newthis, ...$parameters) {}

    /**
     * @param callable $callable Not a proper type annotation due to bug #78770
     * @return Closure
     */
    function fromCallable($callable) {}
}