Skip to content

Fix return-type

Fix return-type #556

Triggered via push December 19, 2023 19:46
Status Failure
Total duration 2m 37s
Artifacts 1

php.yml

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

Annotations

1 error and 6 warnings
Code coverage
Codecov: Failed to properly upload: The process '/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov' failed with exit code 255
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)

Artifacts

Produced during runtime
Name Size
coverage-data Expired
51.3 KB