mirror of
https://github.com/YGGverse/gemtext-php.git
synced 2026-04-01 02:05:32 +00:00
allow empty Document construction
This commit is contained in:
parent
f9bd1941fb
commit
53f04a14e5
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ class Document
|
|||
private array $_entity = [];
|
||||
|
||||
public function __construct(
|
||||
string $data
|
||||
string $data = ''
|
||||
) {
|
||||
foreach ((array) explode(PHP_EOL, $data) as $line)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue