diff --git a/src/lint/linter/xhpast/ArcanistXHPASTLinter.php b/src/lint/linter/xhpast/ArcanistXHPASTLinter.php index c24db6e5..dd5861bf 100644 --- a/src/lint/linter/xhpast/ArcanistXHPASTLinter.php +++ b/src/lint/linter/xhpast/ArcanistXHPASTLinter.php @@ -1460,6 +1460,7 @@ final class ArcanistXHPASTLinter extends ArcanistLinter { default: $key = null; + break; } if ($key !== null) { diff --git a/src/parser/diff/ArcanistDiffParser.php b/src/parser/diff/ArcanistDiffParser.php index 061a49a6..231f6576 100644 --- a/src/parser/diff/ArcanistDiffParser.php +++ b/src/parser/diff/ArcanistDiffParser.php @@ -305,6 +305,7 @@ final class ArcanistDiffParser { break; default: $this->didFailParse("Unknown diff type."); + break; } } while ($this->getLine() !== null);