From 5808914853320736716748e29ad67e1c3e1578c5 Mon Sep 17 00:00:00 2001 From: Kirill Nesmeyanov Date: Fri, 2 Aug 2024 20:49:54 +0300 Subject: [PATCH] Fix PHP 8.4 deprecation notice in JMS\SerializerBundle\Debug\DataCollector::collect method --- Debug/DataCollector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Debug/DataCollector.php b/Debug/DataCollector.php index ab953782..b872572c 100644 --- a/Debug/DataCollector.php +++ b/Debug/DataCollector.php @@ -42,7 +42,7 @@ public function __construct( $this->reset(); } - public function collect(Request $request, Response $response, \Throwable $exception = null): void + public function collect(Request $request, Response $response, ?\Throwable $exception = null): void { }