Skip to content

Commit 6816bca

Browse files
authored
Fix use of deprecated PHPParser LNumber, DNumber nodes (#5016)
1 parent 47789d7 commit 6816bca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Analyser/TypeSpecifier.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,13 @@ public function specifyTypesInCondition(
219219
} elseif ($expr instanceof Expr\Cast\Int_) {
220220
return $this->specifyTypesInCondition(
221221
$scope,
222-
new Node\Expr\BinaryOp\NotEqual($expr->expr, new Node\Scalar\LNumber(0)),
222+
new Node\Expr\BinaryOp\NotEqual($expr->expr, new Node\Scalar\Int_(0)),
223223
$context,
224224
)->setRootExpr($expr);
225225
} elseif ($expr instanceof Expr\Cast\Double) {
226226
return $this->specifyTypesInCondition(
227227
$scope,
228-
new Node\Expr\BinaryOp\NotEqual($expr->expr, new Node\Scalar\DNumber(0.0)),
228+
new Node\Expr\BinaryOp\NotEqual($expr->expr, new Node\Scalar\Float_(0.0)),
229229
$context,
230230
)->setRootExpr($expr);
231231
} elseif ($expr instanceof Node\Expr\BinaryOp\Equal) {

0 commit comments

Comments
 (0)