File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
rules/Php85/Rector/StmtsAwareInterface Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 99use PhpParser \Node \Expr ;
1010use PhpParser \Node \Expr \Assign ;
1111use PhpParser \Node \Expr \Cast \Array_ ;
12+ use PhpParser \Node \Expr \Cast \Int_ ;
1213use PhpParser \Node \Expr \Cast \String_ ;
1314use PhpParser \Node \Expr \ConstFetch ;
1415use PhpParser \Node \Expr \FuncCall ;
1516use PhpParser \Node \Expr \Variable ;
16- use PhpParser \Node \Scalar \DNumber ;
17- use PhpParser \Node \Scalar \LNumber ;
17+ use PhpParser \Node \Scalar \Float_ ;
1818use PhpParser \Node \Stmt ;
1919use PhpParser \Node \Stmt \Expression ;
2020use 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
You can’t perform that action at this time.
0 commit comments