Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Sep 2, 2022
1 parent 1708cdc commit 9b75436
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public static function analyze(
foreach ($stmt_expr_type->getAtomicTypes() as $type_part) {
if ($type_part instanceof TInt || $type_part instanceof TFloat) {
if (!$stmt instanceof PhpParser\Node\Expr\UnaryMinus) {
$acceptable_types []= $type_part;
continue;
}
if ($type_part instanceof TLiteralInt) {
Expand Down

0 comments on commit 9b75436

Please sign in to comment.