Skip to content

Commit

Permalink
fix an error I made a few months ago
Browse files Browse the repository at this point in the history
  • Loading branch information
orklah committed Jul 26, 2021
1 parent 72d6024 commit 06af927
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static function getReturnTypes(
} elseif ($stmt->expr instanceof PhpParser\Node\Scalar\String_) {
$return_types[] = Type::getString();
} elseif ($stmt->expr instanceof PhpParser\Node\Scalar\LNumber) {
$return_types[] = Type::getString();
$return_types[] = Type::getInt();
} elseif ($stmt->expr instanceof PhpParser\Node\Expr\ConstFetch) {
if ((string)$stmt->expr->name === 'true') {
$return_types[] = Type::getTrue();
Expand Down

0 comments on commit 06af927

Please sign in to comment.