Do null key check
This commit is contained in:
parent
dd9d52400e
commit
2871ead27d
@ -430,6 +430,10 @@ class Row {
|
|||||||
protected function updateSyntaxPHP():void
|
protected function updateSyntaxPHP():void
|
||||||
{
|
{
|
||||||
// The index for the tokens should exist
|
// 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];
|
$tokens = $this->parent->syntax->tokens[$this->idx + 1];
|
||||||
|
|
||||||
// $inComment = ($this->idx > 0 && $this->parent->rows[$this->idx - 1]->hlOpenComment);
|
// $inComment = ($this->idx > 0 && $this->parent->rows[$this->idx - 1]->hlOpenComment);
|
||||||
|
Loading…
Reference in New Issue
Block a user