We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f376d3c commit 73e8fefCopy full SHA for 73e8fef
rules/DowngradePhp84/Rector/Expression/DowngradeArrayAllRector.php
@@ -71,6 +71,14 @@ public function getRuleDefinition(): RuleDefinition
71
*/
72
public function refactor(Node $node): ?array
73
{
74
+ if ($node instanceof Return_ && ! $node->expr instanceof FuncCall) {
75
+ return null;
76
+ }
77
+
78
+ if ($node instanceof Expression && ! $node->expr instanceof Assign) {
79
80
81
82
$expr = $node instanceof Expression && $node->expr instanceof Assign
83
? $node->expr->expr
84
: $node->expr;
0 commit comments