Skip to content

Commit

Permalink
Add fallthrough comment
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Feb 26, 2020
1 parent 548d9fc commit 8a7feb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Psalm/Internal/Type/ParseTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,8 @@ public static function createFromTokens(array $type_tokens)
break;
}

// falling through for methods named 'as'

default:
$new_parent = !$current_leaf instanceof ParseTree\Root ? $current_leaf : null;

Expand Down

0 comments on commit 8a7feb5

Please sign in to comment.