Skip to content

Commit

Permalink
Merge pull request #23 from php-etl/fix/lookup-deprecation
Browse files Browse the repository at this point in the history
fix deprecation notice with Lookup's logger
  • Loading branch information
clemzarch authored May 23, 2023
2 parents 596e761 + c913389 commit 86aa4c4
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 86aa4c4

Please sign in to comment.