diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-14 10:22:42 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-14 10:24:06 +0200 |
commit | befe10fd21c82e82d8621558b7998424ab6d2c6d (patch) | |
tree | 36f9fb1e5e55a544df65cb47edfc4a3a16d37d42 /Zend/zend_closures.stub.php | |
parent | f83368c6d960329c17df764947e793a863379582 (diff) | |
download | php-git-befe10fd21c82e82d8621558b7998424ab6d2c6d.tar.gz |
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.
Diffstat (limited to 'Zend/zend_closures.stub.php')
-rw-r--r-- | Zend/zend_closures.stub.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Zend/zend_closures.stub.php b/Zend/zend_closures.stub.php index bf71c1b624..b7df588fe9 100644 --- a/Zend/zend_closures.stub.php +++ b/Zend/zend_closures.stub.php @@ -17,6 +17,5 @@ final class Closure public function call(object $newThis, mixed ...$arguments): mixed {} - /** @param callable $callback callable is not a proper type due to bug #78770. */ - public static function fromCallable($callback): Closure {} + public static function fromCallable(callable $callback): Closure {} } |