From 8e64b9a7ec948325d0a860a2988d4bbe97b02347 Mon Sep 17 00:00:00 2001 From: Maxime Helias Date: Mon, 12 Aug 2019 17:48:20 +0200 Subject: [PATCH] [SecurityBundle] display the correct class name on the deprecated notice --- src/Symfony/Bundle/SecurityBundle/Debug/WrappedListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/SecurityBundle/Debug/WrappedListener.php b/src/Symfony/Bundle/SecurityBundle/Debug/WrappedListener.php index 42735a1025..81d7b8a68f 100644 --- a/src/Symfony/Bundle/SecurityBundle/Debug/WrappedListener.php +++ b/src/Symfony/Bundle/SecurityBundle/Debug/WrappedListener.php @@ -50,7 +50,7 @@ final class WrappedListener implements ListenerInterface if (\is_callable($this->listener)) { ($this->listener)($event); } else { - @trigger_error(sprintf('Calling the "%s::handle()" method from the firewall is deprecated since Symfony 4.3, implement "__invoke()" instead.', \get_class($this)), E_USER_DEPRECATED); + @trigger_error(sprintf('Calling the "%s::handle()" method from the firewall is deprecated since Symfony 4.3, implement "__invoke()" instead.', \get_class($this->listener)), E_USER_DEPRECATED); $this->listener->handle($event); } $this->time = microtime(true) - $startTime;