Fix exception during diagnostics parsing
parent
c84b91de2b
commit
946b5b1cdb
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue