mirror of
https://github.com/php/php-src.git
synced 2024-12-20 07:20:33 +08:00
273731fb76
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()`.
18 lines
400 B
PHP
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) {}
|
|
}
|