php-src/Zend/zend_closures.stub.php
2020-05-19 14:19:37 +02:00

20 lines
554 B
PHP

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