Skip to content

Raise coverage

Raise coverage #227

Triggered via push December 30, 2023 00:22
Status Failure
Total duration 2m 36s
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

2 errors and 11 warnings
TooManyArguments: tests/WSSecurity/XML/sp/NestedPolicyTypeTestTrait.php#L128
tests/WSSecurity/XML/sp/NestedPolicyTypeTestTrait.php:128:16: TooManyArguments: Too many arguments for the number of placeholders in sprintf (see https://psalm.dev/026)
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)