Skip to content

Commit

Permalink
Fix return for getValues()
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrycze-volk committed Apr 16, 2024
1 parent 778da7b commit 0f579a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
parameters:
ignoreErrors:
- '#PHPDoc tag @var for property Slub\\Mods\\Element\\Xml\\Element::$values with type array\|false is not subtype of native type array\.#'
- '#PHPDoc tag @return with type array\|false is not subtype of native type array\.#'
level: 5
paths:
- ../src/
Expand Down
5 changes: 3 additions & 2 deletions src/Mods/Element/Xml/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ public function exists(): bool
}

/**
* Get the value of the queried element
* Get the array of values of the queried element.
*
* @access public
*
* @return array|false
* @return array|false array if element exists, false otherwise
*/
// TODO: change return type after upgrade to PHP 8.x
public function getValues(): array
{
return $this->values;
Expand Down

0 comments on commit 0f579a4

Please sign in to comment.