File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
rules/Php83/Rector/BooleanAnd Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 44
55namespace Rector \Php83 \Rector \BooleanAnd ;
66
7- use PhpParser \Node \Identifier ;
87use PhpParser \Node ;
98use PhpParser \Node \Arg ;
109use PhpParser \Node \Expr \BinaryOp \BooleanAnd ;
1110use PhpParser \Node \Expr \BinaryOp \Identical ;
1211use PhpParser \Node \Expr \BinaryOp \NotIdentical ;
1312use PhpParser \Node \Expr \ConstFetch ;
1413use PhpParser \Node \Expr \FuncCall ;
14+ use PhpParser \Node \Identifier ;
1515use PhpParser \Node \Name ;
1616use Rector \NodeManipulator \BinaryOpManipulator ;
1717use Rector \Php71 \ValueObject \TwoNodeMatch ;
@@ -100,7 +100,7 @@ public function refactor(Node $node): ?Node
100100 foreach ($ args as $ index => $ arg ) {
101101 if ($ arg instanceof Arg && (
102102 ($ arg ->name instanceof Identifier && $ arg ->name ->toString () === 'associative ' ) ||
103- (!$ arg ->name instanceof Identifier && $ index === 1 )
103+ (! $ arg ->name instanceof Identifier && $ index === 1 )
104104 )) {
105105 unset($ funcCall ->args [$ index ]);
106106 break ;
You can’t perform that action at this time.
0 commit comments