Skip to content

Remove unnecessary toXML/fromXML #562

Remove unnecessary toXML/fromXML

Remove unnecessary toXML/fromXML #562

Re-run triggered December 26, 2023 16:36
Status Success
Total duration 27s
Artifacts

php.yml

on: push
Matrix: unit-tests-linux
Matrix: unit-tests-windows
Code coverage
5s
Code coverage
Cleanup artifacts
3s
Cleanup artifacts
Fit to window
Zoom out
Zoom in

Annotations

6 warnings
PropertyNotSetInConstructor: tests/Utils/Base64Element.php#L15
tests/Utils/Base64Element.php:15:13: PropertyNotSetInConstructor: Property SimpleSAML\Test\XML\Base64Element::$content is not defined in constructor of SimpleSAML\Test\XML\Base64Element or in any methods called in the constructor (see https://psalm.dev/074)
ArgumentTypeCoercion: tests/Utils/ExtendableAttributesElement.php#L67
tests/Utils/ExtendableAttributesElement.php:67:32: ArgumentTypeCoercion: Argument 1 of SimpleSAML\Test\XML\ExtendableAttributesElement::setAttributesNS expects list<SimpleSAML\XML\Attribute>, but parent type array<array-key, SimpleSAML\XML\Attribute> provided (see https://psalm.dev/193)
PropertyNotSetInConstructor: tests/Utils/LocalizedStringElement.php#L15
tests/Utils/LocalizedStringElement.php:15:13: PropertyNotSetInConstructor: Property SimpleSAML\Test\XML\LocalizedStringElement::$content is not defined in constructor of SimpleSAML\Test\XML\LocalizedStringElement or in any methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: tests/Utils/QNameElement.php#L15
tests/Utils/QNameElement.php:15:13: PropertyNotSetInConstructor: Property SimpleSAML\Test\XML\QNameElement::$content is not defined in constructor of SimpleSAML\Test\XML\QNameElement or in any methods called in the constructor (see https://psalm.dev/074)
PossiblyNullReference: tests/XML/AttributeTest.php#L97
tests/XML/AttributeTest.php:97:34: PossiblyNullReference: Cannot call method saveXML on possibly null value (see https://psalm.dev/083)
PossiblyInvalidArgument: tests/XML/AttributeTest.php#L107
tests/XML/AttributeTest.php:107:51: PossiblyInvalidArgument: Argument 1 of SimpleSAML\XML\Attribute::fromXML expects DOMAttr, but possibly different type DOMAttr|DOMNameSpaceNode|false provided (see https://psalm.dev/092)