Skip to content

Commit 7fef41c

Browse files
committed
bugfix: deal with null value
1 parent 6f79cbc commit 7fef41c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/XML/md/AbstractIndexedEndpointType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public function toArray(): array
228228
{
229229
$data = parent::toArray();
230230
$data['index'] = $this->getIndex()->toInteger();
231-
$data['isDefault'] = $this->getIsDefault()->toBoolean();
231+
$data['isDefault'] = $this->getIsDefault()?->toBoolean();
232232

233233
return array_filter($data);
234234
}

0 commit comments

Comments
 (0)