From 3d7e7f8407ab6f325ae0ebabd05db860ca66cdea Mon Sep 17 00:00:00 2001 From: Thomas Calvet Date: Mon, 4 Nov 2019 17:22:42 +0100 Subject: [PATCH] [HttpKernel][DataCollectorInterface] Ease compatibility --- .../HttpKernel/DataCollector/DataCollectorInterface.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpKernel/DataCollector/DataCollectorInterface.php b/src/Symfony/Component/HttpKernel/DataCollector/DataCollectorInterface.php index 2470089b810b2..af5911512fd20 100644 --- a/src/Symfony/Component/HttpKernel/DataCollector/DataCollectorInterface.php +++ b/src/Symfony/Component/HttpKernel/DataCollector/DataCollectorInterface.php @@ -25,8 +25,10 @@ interface DataCollectorInterface { /** * Collects data for the given Request and Response. + * + * @param \Throwable|null $exception */ - public function collect(Request $request, Response $response, \Exception $exception = null); + public function collect(Request $request, Response $response/*, \Throwable $exception = null*/); /** * Returns the name of the collector.