Skip to content

Commit 1f4b3b3

Browse files
committed
fix deprecation notice with nullable logger
1 parent 9f7ef9f commit 1f4b3b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Builder/ConditionalLookup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Kiboko\Contract\Configurator\StepBuilderInterface;
88
use Kiboko\Contract\Mapping\CompiledMapperInterface;
99
use PhpParser\Node;
10-
use Psr\Log\LoggerInterface;
1110
use Psr\Log\NullLogger;
1211

1312
final class ConditionalLookup implements StepBuilderInterface
@@ -188,7 +187,8 @@ class: new Node\Name\FullyQualified(NullLogger::class)
188187
default: new Node\Expr\ConstFetch(
189188
name: new Node\Name(name: 'null'),
190189
),
191-
type: new Node\Name\FullyQualified(LoggerInterface::class)
190+
type: new Node\NullableType(\Psr\Log\LoggerInterface::class),
191+
flags: Node\Stmt\Class_::MODIFIER_PRIVATE
192192
),
193193
],
194194
],

0 commit comments

Comments
 (0)