-
-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PHP 8.1] Skip abstract class in NewInInitializerRector (#1581)
- Loading branch information
1 parent
ac90adc
commit cb8fe84
Showing
2 changed files
with
54 additions
and
7 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
rules-tests/Php81/Rector/ClassMethod/NewInInitializerRector/Fixture/skip_abstract.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php81\Rector\ClassMethod\NewInInitializerRector\Fixture; | ||
|
||
abstract class SkipAbstract | ||
{ | ||
private Logger $logger; | ||
|
||
public function __construct( | ||
?Logger $logger = null, | ||
) { | ||
$this->logger = $logger ?? new NullLogger; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters