1
0
Fork 0

Fix exception during diagnostics parsing

pull/357/head
Sara Itani 2017-03-24 10:31:23 -07:00
parent c84b91de2b
commit 946b5b1cdb
1 changed files with 1 additions and 1 deletions

View File

@ -103,8 +103,8 @@ class TolerantTreeAnalyzer implements TreeAnalyzerInterface {
} }
} }
foreach (Tolerant\DiagnosticsProvider::getDiagnostics($this->stmts) as $_error) {
$this->diagnostics = []; $this->diagnostics = [];
foreach (Tolerant\DiagnosticsProvider::getDiagnostics($this->stmts) as $_error) {
$range = Tolerant\PositionUtilities::getRangeFromPosition($_error->start, $_error->length, $content); $range = Tolerant\PositionUtilities::getRangeFromPosition($_error->start, $_error->length, $content);
$this->diagnostics[] = new Diagnostic( $this->diagnostics[] = new Diagnostic(