Skip to content

Implement generic version of testUnmarshalling #220

Implement generic version of testUnmarshalling

Implement generic version of testUnmarshalling #220

Triggered via push December 25, 2023 22:43
Status Failure
Total duration 1m 56s
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

6 errors and 11 warnings
UndefinedClass: tests/WSSecurity/XML/auth/ClaimTypeTest.php#L61
tests/WSSecurity/XML/auth/ClaimTypeTest.php:61:34: UndefinedClass: Class, interface or enum named SimpleSAML\Test\WSSecurity\Constants does not exist (see https://psalm.dev/019)
UndefinedClass: tests/WSSecurity/XML/auth/ClaimTypeTest.php#L63
tests/WSSecurity/XML/auth/ClaimTypeTest.php:63:13: UndefinedClass: Class, interface or enum named SimpleSAML\Test\WSSecurity\Constants does not exist (see https://psalm.dev/019)
UndefinedClass: tests/WSSecurity/XML/auth/ClaimTypeTest.php#L83
tests/WSSecurity/XML/auth/ClaimTypeTest.php:83:34: UndefinedClass: Class, interface or enum named SimpleSAML\Test\WSSecurity\Constants does not exist (see https://psalm.dev/019)
UndefinedClass: tests/WSSecurity/XML/auth/ClaimTypeTest.php#L85
tests/WSSecurity/XML/auth/ClaimTypeTest.php:85:13: UndefinedClass: Class, interface or enum named SimpleSAML\Test\WSSecurity\Constants does not exist (see https://psalm.dev/019)
UndefinedClass: tests/WSSecurity/XML/auth/ClaimTypeTest.php#L96
tests/WSSecurity/XML/auth/ClaimTypeTest.php:96:20: UndefinedClass: Class, interface or enum named SimpleSAML\WSSecurity\Utils\XPath does not exist (see https://psalm.dev/019)
Quality control
Process completed with exit code 2.
UnsafeInstantiation: src/XML/auth/AbstractClaimType.php#L201
src/XML/auth/AbstractClaimType.php:201:16: UnsafeInstantiation: Cannot safely instantiate class SimpleSAML\WSSecurity\XML\auth\AbstractClaimType with "new static" as its constructor might change in child classes (see https://psalm.dev/229)
PossiblyNullReference: src/XML/auth/AbstractClaimType.php#L231
src/XML/auth/AbstractClaimType.php:231:28: PossiblyNullReference: Cannot call method toXML on possibly null value (see https://psalm.dev/083)
UnsafeInstantiation: src/XML/auth/AbstractConstrainedValueType.php#L128
src/XML/auth/AbstractConstrainedValueType.php:128:16: UnsafeInstantiation: Cannot safely instantiate class SimpleSAML\WSSecurity\XML\auth\AbstractConstrainedValueType with "new static" as its constructor might change in child classes (see https://psalm.dev/229)
PossiblyNullArgument: src/XML/auth/AbstractEncryptedValueType.php#L95
src/XML/auth/AbstractEncryptedValueType.php:95:50: PossiblyNullArgument: Argument 2 of DOMElement::setAttribute cannot be null, possibly null value provided (see https://psalm.dev/078)
ArgumentTypeCoercion: src/XML/auth/AbstractStructuredValueType.php#L47
src/XML/auth/AbstractStructuredValueType.php:47:32: ArgumentTypeCoercion: Argument 1 of SimpleSAML\WSSecurity\XML\auth\AbstractStructuredValueType::setAttributesNS expects list<SimpleSAML\XML\Attribute>, but parent type array<array-key, mixed> provided (see https://psalm.dev/193)
UnsafeInstantiation: src/XML/auth/AbstractStructuredValueType.php#L74
src/XML/auth/AbstractStructuredValueType.php:74:16: UnsafeInstantiation: Cannot safely instantiate class SimpleSAML\WSSecurity\XML\auth\AbstractStructuredValueType with "new static" as its constructor might change in child classes (see https://psalm.dev/229)
UnsafeInstantiation: src/XML/auth/AbstractValueInRangeType.php#L51
src/XML/auth/AbstractValueInRangeType.php:51:16: UnsafeInstantiation: Cannot safely instantiate class SimpleSAML\WSSecurity\XML\auth\AbstractValueInRangeType with "new static" as its constructor might change in child classes (see https://psalm.dev/229)
ArgumentTypeCoercion: src/XML/fed/AbstractClaimDialectType.php#L50
src/XML/fed/AbstractClaimDialectType.php:50:32: ArgumentTypeCoercion: Argument 1 of SimpleSAML\WSSecurity\XML\fed\AbstractClaimDialectType::setAttributesNS expects list<SimpleSAML\XML\Attribute>, but parent type array<array-key, mixed> provided (see https://psalm.dev/193)
UnsafeInstantiation: src/XML/fed/AbstractClaimDialectType.php#L86
src/XML/fed/AbstractClaimDialectType.php:86:16: UnsafeInstantiation: Cannot safely instantiate class SimpleSAML\WSSecurity\XML\fed\AbstractClaimDialectType with "new static" as its constructor might change in child classes (see https://psalm.dev/229)
PossiblyNullArgument: src/XML/fed/AbstractClaimDialectType.php#L105
src/XML/fed/AbstractClaimDialectType.php:105:37: PossiblyNullArgument: Argument 2 of DOMElement::setAttribute cannot be null, possibly null value provided (see https://psalm.dev/078)
ArgumentTypeCoercion: tests/WSSecurity/XML/auth/ConstrainedValueTest.php#L81
tests/WSSecurity/XML/auth/ConstrainedValueTest.php:81:50: ArgumentTypeCoercion: Argument 1 of SimpleSAML\WSSecurity\XML\auth\ConstrainedValue::__construct expects SimpleSAML\WSSecurity\XML\auth\ValueGreaterThan|SimpleSAML\WSSecurity\XML\auth\ValueGreaterThanOrEqual|SimpleSAML\WSSecurity\XML\auth\ValueInRangen|SimpleSAML\WSSecurity\XML\auth\ValueLessThan|SimpleSAML\WSSecurity\XML\auth\ValueLessThanOrEqual|SimpleSAML\WSSecurity\XML\auth\ValueOneOf, but parent type object provided (see https://psalm.dev/193)