-
-
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.
[CodeQuality] Handle crash on variable variable on assign closure on …
…OptionalParametersAfterRequiredRector (#5089) * [CodeQuality] Handle crash on variable variable on assign closure on OptionalParametersAfterRequiredRector * Fix * Fix scope check
- Loading branch information
1 parent
2f90125
commit 8e67265
Showing
3 changed files
with
24 additions
and
4 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
13 changes: 13 additions & 0 deletions
13
...ClassMethod/OptionalParametersAfterRequiredRector/Fixture/skip_variable_variable5.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,13 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\CodeQuality\Rector\ClassMethod\OptionalParametersAfterRequiredRector\Fixture; | ||
|
||
abstract class SkipVariableVariable5 | ||
{ | ||
public function run() | ||
{ | ||
$$get_data = $get_data->Where(function ($query) use ($field, $key) { | ||
$query->where($key, '!=', $field['search_value'][0]['val'])->orWhere($key, 'exists', false); | ||
}); | ||
} | ||
} |
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