Differences between legacy and new API #595
Annotations
10 errors
Run the tests:
src/Xml/Dom/Collection/NodeList.php#L64
src/Xml/Dom/Collection/NodeList.php:64:16: MixedReturnTypeCoercion: The declared return type 'VeeWee\Xml\Dom\Collection\NodeList<DOM\Element>' for VeeWee\Xml\Dom\Collection\NodeList::fromDOMHTMLCollection is more specific than the inferred return type 'VeeWee\Xml\Dom\Collection\NodeList<TValue:Iterator as mixed>' (see https://psalm.dev/197)
|
Run the tests:
src/Xml/Dom/Collection/NodeList.php#L68
src/Xml/Dom/Collection/NodeList.php:68:16: MixedReturnTypeCoercion: The type 'VeeWee\Xml\Dom\Collection\NodeList<TValue:Iterator as mixed>' is more general than the declared return type 'VeeWee\Xml\Dom\Collection\NodeList<DOM\Element>' for VeeWee\Xml\Dom\Collection\NodeList::fromDOMHTMLCollection (see https://psalm.dev/197)
|
Run the tests:
src/Xml/Dom/Collection/NodeList.php#L68
src/Xml/Dom/Collection/NodeList.php:68:28: MixedArgumentTypeCoercion: Argument 1 of VeeWee\Xml\Dom\Collection\NodeList::__construct expects DOM\Node, but parent type TValue:Iterator as mixed provided (see https://psalm.dev/194)
|
Run the tests:
src/Xml/Dom/Collection/NodeList.php#L73
src/Xml/Dom/Collection/NodeList.php:73:15: TooManyTemplateParams: DOM\NodeList<X:fn-veewee\xml\dom\collection\nodelist::fromdomnodelist as DOM\Node> has too many template params, expecting 0 (see https://psalm.dev/184)
|
Run the tests:
src/Xml/Dom/Collection/NodeList.php#L74
src/Xml/Dom/Collection/NodeList.php:74:16: InvalidReturnType: The declared return type 'VeeWee\Xml\Dom\Collection\NodeList<X:fn-veewee\xml\dom\collection\nodelist::fromdomnodelist as DOM\Node>' for VeeWee\Xml\Dom\Collection\NodeList::fromDOMNodeList is incorrect, got 'VeeWee\Xml\Dom\Collection\NodeList<TValue:Iterator as mixed>' (see https://psalm.dev/011)
|
Run the tests:
src/Xml/Dom/Collection/NodeList.php#L78
src/Xml/Dom/Collection/NodeList.php:78:16: InvalidReturnStatement: The inferred type 'VeeWee\Xml\Dom\Collection\NodeList<TValue:Iterator as mixed>' does not match the declared return type 'VeeWee\Xml\Dom\Collection\NodeList<X:fn-veewee\xml\dom\collection\nodelist::fromdomnodelist as DOM\Node>' for VeeWee\Xml\Dom\Collection\NodeList::fromDOMNodeList (see https://psalm.dev/128)
|
Run the tests:
src/Xml/Dom/Collection/NodeList.php#L78
src/Xml/Dom/Collection/NodeList.php:78:28: MixedArgumentTypeCoercion: Argument 1 of VeeWee\Xml\Dom\Collection\NodeList::__construct expects DOM\Node, but parent type TValue:Iterator as mixed provided (see https://psalm.dev/194)
|
Run the tests:
src/Xml/Dom/Collection/NodeList.php#L196
src/Xml/Dom/Collection/NodeList.php:196:15: InvalidClass: Class, interface or enum DOMXpath has wrong casing (see https://psalm.dev/007)
|
Run the tests:
src/Xml/Dom/Collection/NodeList.php#L208
src/Xml/Dom/Collection/NodeList.php:208:52: InvalidArgument: Argument 2 of VeeWee\Xml\Dom\Xpath::fromUnsafeNode expects callable(DOM\XPath):DOM\XPath, but callable(DOMXpath):DOMXpath provided (see https://psalm.dev/004)
|
Run the tests:
src/Xml/Dom/Collection/NodeList.php#L214
src/Xml/Dom/Collection/NodeList.php:214:15: InvalidClass: Class, interface or enum DOMXpath has wrong casing (see https://psalm.dev/007)
|
The logs for this run have expired and are no longer available.
Loading