Skip to content

Commit

Permalink
fix deprecation notice with Lookup's logger
Browse files Browse the repository at this point in the history
  • Loading branch information
clemzarch committed May 17, 2023
1 parent 596e761 commit c913389
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Builder/Lookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
),
],
],
Expand Down

0 comments on commit c913389

Please sign in to comment.