Skip to content

Commit

Permalink
Missed a case where __LINE__ is assigned to int
Browse files Browse the repository at this point in the history
  • Loading branch information
robchett committed Jun 17, 2023
1 parent b39b1af commit f0c533d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -29,7 +29,7 @@ public static function analyze(
Context $context
): void {
if ($stmt instanceof PhpParser\Node\Scalar\MagicConst\Line) {
$statements_analyzer->node_data->setType($stmt, Type::getInt());
$statements_analyzer->node_data->setType($stmt, Type::getIntRange(1, null));
} elseif ($stmt instanceof PhpParser\Node\Scalar\MagicConst\Class_) {
$codebase = $statements_analyzer->getCodebase();

Expand Down

0 comments on commit f0c533d

Please sign in to comment.