php-src/Zend/zend_closures.stub.php
2019-11-15 17:19:26 +01:00

21 lines
483 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) {}
/**
* @param callable $callable Not a proper type annotation due to bug #78770
* @return Closure
*/
function fromCallable($callable) {}
}