From 20c587fc23a0fa62c6b68928c99435ae1b875935 Mon Sep 17 00:00:00 2001 From: Wojciech Skorodecki Date: Fri, 17 May 2019 15:28:19 +0200 Subject: [PATCH] [EventDispatcher] Removed "callable" type hint from WrappedListener constructor --- src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php b/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php index 34316b54c3..3991c0165f 100644 --- a/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php +++ b/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php @@ -38,7 +38,7 @@ class WrappedListener private $priority; private static $hasClassStub; - public function __construct(callable $listener, ?string $name, Stopwatch $stopwatch, EventDispatcherInterface $dispatcher = null) + public function __construct($listener, ?string $name, Stopwatch $stopwatch, EventDispatcherInterface $dispatcher = null) { $this->listener = $listener; $this->optimizedListener = $listener instanceof \Closure ? $listener : \Closure::fromCallable($listener);