We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1925e8e commit 48840dbCopy full SHA for 48840db
1 file changed
src/XML/md/AbstractIndexedEndpointType.php
@@ -260,6 +260,12 @@ public function toArray(): array
260
$data['index'] = $this->getIndex()->toInteger();
261
$data['isDefault'] = $this->getIsDefault()?->toBoolean();
262
263
- return array_filter($data);
+ return array_filter(
264
+ $data,
265
+ function ($v, $k) {
266
+ return $v !== null;
267
+ },
268
+ ARRAY_FILTER_USE_BOTH,
269
+ );
270
}
271
0 commit comments