From befe10fd21c82e82d8621558b7998424ab6d2c6d Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 14 Aug 2020 10:22:42 +0200 Subject: 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. --- Zend/zend_closures.stub.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Zend/zend_closures.stub.php') 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 {} } -- cgit v1.2.1