1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Tables always acquire previous

This commit is contained in:
Aidan Woods 2019-07-25 16:18:00 +02:00
parent 37f306c3a8
commit 211a7eb5aa
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -18,9 +18,6 @@ use Erusev\Parsedown\State;
*/
final class Table implements AcquisitioningBlock, ContinuableBlock
{
/** @var bool */
private $acquired;
/** @var array<int, _Alignment|null> */
private $alignments;
@ -34,14 +31,12 @@ final class Table implements AcquisitioningBlock, ContinuableBlock
* @param array<int, _Alignment|null> $alignments
* @param array<int, string> $headerCells
* @param array<int, array<int, string>> $rows
* @param bool $acquired
*/
private function __construct($alignments, $headerCells, $rows, $acquired = false)
private function __construct($alignments, $headerCells, $rows)
{
$this->alignments = $alignments;
$this->headerCells = $headerCells;
$this->rows = $rows;
$this->acquired = $acquired;
}
/**
@ -91,7 +86,7 @@ final class Table implements AcquisitioningBlock, ContinuableBlock
# ~
return new self($alignments, $headerCells, [], true);
return new self($alignments, $headerCells, []);
}
/**