From c913389c0aa102f7fdf4122e8bc3889da7cbf97d Mon Sep 17 00:00:00 2001 From: clementzarch Date: Wed, 17 May 2023 16:59:22 +0200 Subject: [PATCH] fix deprecation notice with Lookup's logger --- src/Builder/Lookup.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Builder/Lookup.php b/src/Builder/Lookup.php index 5c7c5f2..76c563a 100644 --- a/src/Builder/Lookup.php +++ b/src/Builder/Lookup.php @@ -140,7 +140,8 @@ class: new Node\Name\FullyQualified(\Psr\Log\NullLogger::class) default: new Node\Expr\ConstFetch( name: new Node\Name(name: 'null'), ), - type: new Node\Name\FullyQualified(\Psr\Log\LoggerInterface::class) + type: new Node\NullableType(\Psr\Log\LoggerInterface::class), + flags: Node\Stmt\Class_::MODIFIER_PRIVATE ), ], ],