Skip to content

Remove unnecessary toXML/fromXML #559

Remove unnecessary toXML/fromXML

Remove unnecessary toXML/fromXML #559

Triggered via push December 26, 2023 16:14
Status Failure
Total duration 2m 33s
Artifacts

php.yml

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

Annotations

4 errors and 6 warnings
Unit tests, PHP 8.3, ubuntu-latest: tests/XML/AbstractElementTest.php#L58
SimpleSAML\Test\XML\AbstractElementTest::testUnmarshalling() has #[\Override] attribute, but no matching parent method exists
Unit tests, PHP 8.3, ubuntu-latest
Process completed with exit code 255.
Unit tests, PHP 8.3, windows-latest: tests/XML/AbstractElementTest.php#L58
SimpleSAML\Test\XML\AbstractElementTest::testUnmarshalling() has #[\Override] attribute, but no matching parent method exists
Unit tests, PHP 8.3, windows-latest
Process completed with exit code 1.
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)