php-src/Zend/zend_closures.stub.php
2020-04-11 10:23:51 +02:00

21 lines
536 B
PHP

<?php
Class Closure
{
private function __construct() {}
/** @return ?Closure */
public static function bind(Closure $closure, ?object $newthis, $newscope = UNKNOWN) {}
/** @return ?Closure */
public function bindTo(?object $newthis, $newscope = UNKNOWN) {}
/** @return mixed */
public function call(object $newthis, ...$parameters) {}
/**
* @param callable $callable Not a proper type annotation due to bug #78770
* @return Closure
*/
public function fromCallable($callable) {}
}