mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
befe10fd21
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.
22 lines
568 B
PHP
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 {}
|
|
}
|