-
-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor away PARENT_NODE from AssignArrayToStringRector (#3983)
Co-authored-by: GitHub Action <actions@github.com>
- Loading branch information
1 parent
c70a5b8
commit 18d8df6
Showing
8 changed files
with
181 additions
and
169 deletions.
There are no files selected for viewing
33 changes: 0 additions & 33 deletions
33
rules-tests/Php71/Rector/Assign/AssignArrayToStringRector/Fixture/fixture5.php.inc
This file was deleted.
Oops, something went wrong.
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
20 changes: 0 additions & 20 deletions
20
...ts/Php71/Rector/Assign/AssignArrayToStringRector/Fixture/skip_cast_undefined_var3.php.inc
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
...s/Php71/Rector/Assign/AssignArrayToStringRector/Fixture/skip_direct_string_assign.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,15 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php71\Rector\Assign\AssignArrayToStringRector\Fixture; | ||
|
||
final class SkipDirectStringAssign | ||
{ | ||
public function fun() | ||
{ | ||
$array = ''; | ||
|
||
$array = 'foo'; | ||
|
||
return $array; | ||
} | ||
} |
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
Oops, something went wrong.