-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix just assigned variable in InlineArrayReturnAssignRector (#4363)
- Loading branch information
1 parent
a653146
commit 14d5c18
Showing
21 changed files
with
77 additions
and
258 deletions.
There are no files selected for viewing
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
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
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
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
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
16 changes: 16 additions & 0 deletions
16
...ector/ClassMethod/InlineArrayReturnAssignRector/Fixture/skip_assign_in_the_middle.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 SkipAssignInTheMiddle | ||
{ | ||
public function run() | ||
{ | ||
$items = []; | ||
|
||
$result = 'Timmy'; | ||
$items[] = $result . ' Bobby'; | ||
|
||
return $items; | ||
} | ||
} |
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
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
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
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
28 changes: 0 additions & 28 deletions
28
tests/Issues/DisableAutoImportDocBlock/DisableAutoImportDocBlockTest.php
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
tests/Issues/DisableAutoImportDocBlock/Fixture/do_not_import_doc_after_rename.php.inc
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
tests/Issues/DisableAutoImportDocBlock/Fixture/do_not_import_doc_block.php.inc
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
tests/Issues/DisableAutoImportDocBlock/Fixture/skip_import_of_aliased.php.inc
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
tests/Issues/DisableAutoImportDocBlock/config/configure_rule.php
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
tests/Issues/Issue6496/Fixture/double_import_same_suffix.php.inc
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
tests/Issues/Issue6496/Fixture/import_doc_after_rename.php.inc
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.