Skip to content

Commit 7cd7396

Browse files
arshidkv12TomasVotruba
authored andcommitted
pipe
1 parent 9cb5192 commit 7cd7396

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rules/Php85/Rector/StmtsAwareInterface/NestedToPipeOperatorRector.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
use PhpParser\Node\Expr;
1010
use PhpParser\Node\Expr\Assign;
1111
use PhpParser\Node\Expr\Cast\Array_;
12+
use PhpParser\Node\Expr\Cast\Int_;
1213
use PhpParser\Node\Expr\Cast\String_;
1314
use PhpParser\Node\Expr\ConstFetch;
1415
use PhpParser\Node\Expr\FuncCall;
1516
use PhpParser\Node\Expr\Variable;
16-
use PhpParser\Node\Scalar\DNumber;
17-
use PhpParser\Node\Scalar\LNumber;
17+
use PhpParser\Node\Scalar\Float_;
1818
use PhpParser\Node\Stmt;
1919
use PhpParser\Node\Stmt\Expression;
2020
use PhpParser\Node\VariadicPlaceholder;
@@ -184,8 +184,8 @@ private function isSimpleValue(Expr $expr): bool
184184
return $expr instanceof Variable
185185
|| $expr instanceof ConstFetch
186186
|| $expr instanceof String_
187-
|| $expr instanceof LNumber
188-
|| $expr instanceof DNumber
187+
|| $expr instanceof Float_
188+
|| $expr instanceof Int_
189189
|| $expr instanceof Array_;
190190
}
191191

0 commit comments

Comments
 (0)