php-src/Zend/zend_closures.stub.php
Christoph M. Becker 273731fb76 Add Zend class/interface arginfo stubs
We also change `Generator::throw()` to expect a `Throwable` in the
first place, and we now throw a TypeError instead of returning `false`
from `Exception::getTraceAsString()`.
2019-10-15 16:21:00 +02:00

18 lines
400 B
PHP

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