Do null key check

This commit is contained in:
Timothy Warren 2019-11-05 12:56:12 -05:00
parent dd9d52400e
commit 2871ead27d

View File

@ -430,6 +430,10 @@ class Row {
protected function updateSyntaxPHP():void
{
// The index for the tokens should exist
if ( ! array_key_exists($this->idx + 1, $this->parent->syntax->tokens))
{
return;
}
$tokens = $this->parent->syntax->tokens[$this->idx + 1];
// $inComment = ($this->idx > 0 && $this->parent->rows[$this->idx - 1]->hlOpenComment);