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 ), ], ],