Skip to content

Commit

Permalink
Fix non-static methods called as static '::' methods (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayesh committed Sep 13, 2020
1 parent 5d397b8 commit 0a90d68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Extension/Table/TableParser.php
Expand Up @@ -114,7 +114,7 @@ public function parseInlines(InlineParserEngineInterface $inlineParser): void
$head->appendChild($headerRow);
for ($i = 0; $i < $headerColumns; $i++) {
$cell = $this->headerCells[$i];
$tableCell = self::parseCell($cell, $i, $inlineParser);
$tableCell = $this->parseCell($cell, $i, $inlineParser);
$tableCell->setType(TableCell::TYPE_HEAD);
$headerRow->appendChild($tableCell);
}
Expand All @@ -127,7 +127,7 @@ public function parseInlines(InlineParserEngineInterface $inlineParser): void
// Body can not have more columns than head
for ($i = 0; $i < $headerColumns; $i++) {
$cell = $cells[$i] ?? '';
$tableCell = self::parseCell($cell, $i, $inlineParser);
$tableCell = $this->parseCell($cell, $i, $inlineParser);
$row->appendChild($tableCell);
}

Expand Down

0 comments on commit 0a90d68

Please sign in to comment.