Skip to content

Commit 39d85df

Browse files
committed
Fix return-types to return list instead of array
1 parent 7c1d107 commit 39d85df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/XML/AbstractElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function getQualifiedName(): string
143143
* Extract localized names from the children of a given element.
144144
*
145145
* @param \DOMElement $parent The element we want to search.
146-
* @return array<static> An array of objects of this class.
146+
* @return list<static> An array of objects of this class.
147147
*/
148148
public static function getChildrenOfClass(DOMElement $parent): array
149149
{

src/XML/ExtendableAttributesTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function getAttributesNS(): array
9393
*
9494
* @param \DOMElement $xml
9595
* @param string|string[]|null $namespace
96-
* @return array<int, \SimpleSAML\XML\Attribute>
96+
* @return list<\SimpleSAML\XML\Attribute>
9797
*/
9898
protected static function getAttributesNSFromXML(
9999
DOMElement $xml,

0 commit comments

Comments
 (0)