We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b17ed5 commit d7fc3b4Copy full SHA for d7fc3b4
source/Parser.php
@@ -358,7 +358,8 @@ public function format($code)
358
try {
359
$parsed = $parser->parse($code);
360
} catch (Exception $e) {
361
- throw new Exception("could not parse code");
+ // can't format, but we can still return...
362
+ return $code;
363
}
364
365
return $this->printer->prettyPrintFile($parsed);
0 commit comments