mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

Instead of manually implementing this, use the standard mechanism. This has minor behavior changes (e.g. doing an isset() will now return false instead of throwing) which are more in line with typical behavior.
21 lines
522 B
PHP
21 lines
522 B
PHP
<?php
|
|
|
|
/** @generate-class-entries */
|
|
|
|
/** @strict-properties */
|
|
final class Closure
|
|
{
|
|
private function __construct() {}
|
|
|
|
public static function bind(
|
|
Closure $closure,
|
|
?object $newThis,
|
|
object|string|null $newScope = "static"
|
|
): ?Closure {}
|
|
|
|
public function bindTo(?object $newThis, object|string|null $newScope = "static"): ?Closure {}
|
|
|
|
public function call(object $newThis, mixed ...$args): mixed {}
|
|
|
|
public static function fromCallable(callable $callback): Closure {}
|
|
}
|