php-src/Zend/zend_closures.stub.php
Nikita Popov befe10fd21 Fix bug #78770
Refactor the zend_is_callable implementation to check callability
at a particular frame (this is an implementation detail for now,
but could be exposed in the API if useful). Pick the first parent
user frame as the one to check.
2020-08-14 10:24:06 +02:00

22 lines
568 B
PHP

<?php
/** @generate-function-entries */
final class Closure
{
private function __construct() {}
/** @param object|string|null $newScope */
public static function bind(Closure $closure, ?object $newThis, $newScope = UNKNOWN): ?Closure {}
/**
* @param object|string|null $newScope
* @alias Closure::bind
*/
public function bindTo(?object $newThis, $newScope = UNKNOWN): ?Closure {}
public function call(object $newThis, mixed ...$arguments): mixed {}
public static function fromCallable(callable $callback): Closure {}
}