-
-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix multi property default assign (#2986)
- Loading branch information
1 parent
2427c5a
commit ee04ee1
Showing
6 changed files
with
62 additions
and
86 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
...y/Rector/Class_/InlineConstructorDefaultToPropertyRector/Fixture/multi_properties.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,32 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector\Fixture; | ||
|
||
final class MultiProperties | ||
{ | ||
private $thing1, $thing2, $thing3; | ||
|
||
public function __construct() | ||
{ | ||
$this->thing1 = 1; | ||
$this->thing2 = 2; | ||
$this->thing3 = 3; | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector\Fixture; | ||
|
||
final class MultiProperties | ||
{ | ||
private $thing1 = 1, $thing2 = 2, $thing3 = 3; | ||
|
||
public function __construct() | ||
{ | ||
} | ||
} | ||
|
||
?> |
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
35 changes: 0 additions & 35 deletions
35
tests/Issues/Issue7498/FinalizeClassesWithoutChildrenRectorIncorrectBevahiourTest.php
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.