Skip to content

Commit a82fea2

Browse files
committed
Fixed param annotations
1 parent c53bbca commit a82fea2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Util/Xml.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static function arrayToXml(DOMDocument $xml, DOMNode $domNode, array $arr
1919
{
2020
foreach ($array as $el => $val) {
2121
/**
22-
* @var string|array< $val
22+
* @var string|array<mixed> $val
2323
*/
2424
if (is_array($val)) {
2525
self::arrayToXml($xml, $domNode->$el, $val);
@@ -31,7 +31,7 @@ public static function arrayToXml(DOMDocument $xml, DOMNode $domNode, array $arr
3131
}
3232

3333
/**
34-
* @param array<DOMNode|XmlBuilder|array<mixed>|string|null> $xml
34+
* @param DOMNode|XmlBuilder|array<mixed>|string|null $xml
3535
*/
3636
public static function toXml(DOMNode|XmlBuilder|array|string|null $xml): DOMDocument
3737
{

src/Util/XmlBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
* * `$xml->getDom` - get a DOMDocument object
7070
* * `$xml->__toString` - get a string representation of XML.
7171
*
72-
* [Source code](https://github.com/Codeception/Codeception/blob/5.0/src/Codeception/Util/XmlBuilder.php)
72+
* [Source code](https://github.com/Codeception/lib-xml/blob/main/src/Util/XmlBuilder.php)
7373
*/
7474
class XmlBuilder
7575
{

src/Util/XmlStructure.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ class XmlStructure
1717
protected DOMDocument $xml;
1818

1919
/**
20-
* @param array<DOMNode|XmlBuilder|array<mixed>|string|null> $xml
20+
* @param DOMNode|XmlBuilder|array<mixed>|string|null $xml
2121
*/
22-
public function __construct($xml)
22+
public function __construct(DOMNode|XmlBuilder|array|string|null $xml)
2323
{
2424
$this->xml = SoapXmlUtil::toXml($xml);
2525
}
@@ -50,9 +50,9 @@ public function matchElement(string $cssOrXPath): ?DOMNode
5050
}
5151

5252
/**
53-
* @param array<DOMNode|XmlBuilder|array<mixed>|string|null> $xml
53+
* @param DOMNode|XmlBuilder|array<mixed>|string|null $xml
5454
*/
55-
public function matchXmlStructure($xml): bool
55+
public function matchXmlStructure(DOMNode|XmlBuilder|array|string|null $xml): bool
5656
{
5757
$xml = SoapXmlUtil::toXml($xml);
5858
$root = $xml->firstChild;

0 commit comments

Comments
 (0)