summaryrefslogtreecommitdiff
path: root/Zend/zend_closures.stub.php
blob: cc859b2b103e1f2515922e9263d659f4eeb8ece8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?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) {}

    function call(object $newthis, ...$parameters) {}

    /** @return Closure */
    function fromCallable(callable $callable) {}
}