Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CodeQuality] Skip combine var with property fetch on InlineArrayRetu…
…rnAssignRector (#5681) * [CodeQuality] Skip combine var with property fetch on InlineArrayReturnAssignRector * fix
- Loading branch information
1 parent
c591bd2
commit 2846b01
Showing
2 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...Rector/ClassMethod/InlineArrayReturnAssignRector/Fixture/skip_with_property_fetch.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,16 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\CodeQuality\Rector\ClassMethod\InlineArrayReturnAssignRector\Fixture; | ||
|
||
final class SkipWithPropertyFetch | ||
{ | ||
public function run($person2) | ||
{ | ||
$person = []; | ||
|
||
$person['name'] = 'Timmy'; | ||
$this->person['name'] = 'Back'; | ||
|
||
return $person; | ||
} | ||
} |
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