Skip to content

Commit

Permalink
[Php81] Fix NewInInitializerRector code sample (#1264)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Nov 18, 2021
1 parent b201787 commit c6473c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rules/Php81/Rector/ClassMethod/NewInInitializerRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ public function __construct(
<<<'CODE_SAMPLE'
class SomeClass
{
private Logger $logger;
public function __construct(
private Logger $logger = new NullLogger,
Logger $logger = new NullLogger,
) {
}
}
Expand Down

0 comments on commit c6473c6

Please sign in to comment.