-
-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Renaming] Handle crash on assign on for loop on RenameFunctionRector (…
…#6730) * [Renaming] Handle crash on for loop on RenameFunctionRector * Fix * [ci-review] Rector Rectify --------- Co-authored-by: GitHub Action <[email protected]>
- Loading branch information
1 parent
36f2d21
commit 8efb34e
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
rules-tests/Renaming/Rector/FuncCall/RenameFunctionRector/Fixture/in_for.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,27 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Renaming\Rector\FuncCall\RenameFunctionRector\Fixture; | ||
|
||
class InFor { | ||
function process($file) { | ||
for ($i=0;$n=sizeof($files),$i<$n;$i++) { | ||
$products_image_name = $files[$i]['text']; | ||
} | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\Renaming\Rector\FuncCall\RenameFunctionRector\Fixture; | ||
|
||
class InFor { | ||
function process($file) { | ||
for ($i=0;$n=count($files),$i<$n;$i++) { | ||
$products_image_name = $files[$i]['text']; | ||
} | ||
} | ||
} | ||
|
||
?> |
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