From 78154bf3ee0d403c286d1bb86d8ccaee6b7275e5 Mon Sep 17 00:00:00 2001 From: "steven.lewis" Date: Fri, 1 Nov 2024 13:23:27 +0000 Subject: [PATCH] ADD PSR-3 exception error logging --- src/JsonRPC/Request/RequestParser.php | 2 +- src/JsonRPC/Response/ResponseBuilder.php | 2 +- src/JsonRPC/Server.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/JsonRPC/Request/RequestParser.php b/src/JsonRPC/Request/RequestParser.php index b468a0d..48d94e0 100644 --- a/src/JsonRPC/Request/RequestParser.php +++ b/src/JsonRPC/Request/RequestParser.php @@ -65,7 +65,7 @@ class RequestParser */ protected $requestLogger; - protected ?LoggerInterface $psr3Logger; + protected ?LoggerInterface $psr3Logger = null; /** * Get new object instance diff --git a/src/JsonRPC/Response/ResponseBuilder.php b/src/JsonRPC/Response/ResponseBuilder.php index be960bf..fb7a21e 100644 --- a/src/JsonRPC/Response/ResponseBuilder.php +++ b/src/JsonRPC/Response/ResponseBuilder.php @@ -88,7 +88,7 @@ class ResponseBuilder */ protected $exception; - protected ?LoggerInterface $psr3Logger; + protected ?LoggerInterface $psr3Logger = null; /** * Get new object instance diff --git a/src/JsonRPC/Server.php b/src/JsonRPC/Server.php index 289ef5b..2b98e89 100644 --- a/src/JsonRPC/Server.php +++ b/src/JsonRPC/Server.php @@ -126,7 +126,7 @@ class Server */ protected $requestLogger; - protected ?LoggerInterface $psr3Logger; + protected ?LoggerInterface $psr3Logger = null; /** * Constructor