Skip to content

Commit

Permalink
Add array return type of xmlDeserialize
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Jan 22, 2023
1 parent 10cce63 commit 5d45370
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Parser/XML/Element/KeyValue.php
Expand Up @@ -34,10 +34,8 @@ class KeyValue extends SabreXml\Element\KeyValue
* the next element.
*
* @param XML\Reader $reader
*
* @return mixed
*/
public static function xmlDeserialize(SabreXml\Reader $reader)
public static function xmlDeserialize(SabreXml\Reader $reader): array
{
// If there's no children, we don't do anything.
if ($reader->isEmptyElement) {
Expand Down

0 comments on commit 5d45370

Please sign in to comment.