]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix implicit fallthrough in arc
authorepriestley <git@epriestley.com>
Fri, 9 Mar 2012 16:57:03 +0000 (08:57 -0800)
committerepriestley <git@epriestley.com>
Fri, 9 Mar 2012 16:57:03 +0000 (08:57 -0800)
Summary: Raised by new linter.

Test Plan: Lint/inspection.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran, epriestley
Differential Revision: https://secure.phabricator.com/D1831

src/lint/linter/xhpast/ArcanistXHPASTLinter.php
src/parser/diff/ArcanistDiffParser.php

index c24db6e51421a8cbc77238d0f6b0b1930410ede1..dd5861bfccc82a996fde6a3ec6195a9b6ddb16d2 100644 (file)
@@ -1460,6 +1460,7 @@ final class ArcanistXHPASTLinter extends ArcanistLinter {
 
           default:
             $key = null;
+            break;
         }
 
         if ($key !== null) {
index 061a49a6356f71427716d3faf44b7380a004e249..231f657617bbdc3c0bdff23b97f5bbefd0b11e1b 100644 (file)
@@ -305,6 +305,7 @@ final class ArcanistDiffParser {
           break;
         default:
           $this->didFailParse("Unknown diff type.");
+          break;
       }
     } while ($this->getLine() !== null);