Skip to content

Commit

Permalink
Fix constructor signature; elements can be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Nov 18, 2023
1 parent 1a38812 commit f9029fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XML/ds/DsObject.php
Expand Up @@ -40,7 +40,7 @@ public function __construct(
protected ?string $Id = null,
protected ?string $MimeType = null,
protected ?string $Encoding = null,
array $elements,
array $elements = [],
) {
Assert::nullOrValidNCName($Id);
Assert::nullOrValidURI($Encoding);
Expand Down

0 comments on commit f9029fc

Please sign in to comment.