Skip to content

Raise coverage

Raise coverage #225

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

10 errors and 10 warnings
InvalidNullableReturnType: src/XML/sp/AbstractIssuedTokenType.php#L66
src/XML/sp/AbstractIssuedTokenType.php:66:16: InvalidNullableReturnType: The declared return type 'SimpleSAML\WSSecurity\XML\sp\Issuer|SimpleSAML\WSSecurity\XML\sp\IssuerName' for SimpleSAML\WSSecurity\XML\sp\AbstractIssuedTokenType::getIssuer is not nullable, but 'SimpleSAML\WSSecurity\XML\sp\Issuer|SimpleSAML\WSSecurity\XML\sp\IssuerName|null' contains null (see https://psalm.dev/144)
NullableReturnStatement: src/XML/sp/AbstractIssuedTokenType.php#L70
src/XML/sp/AbstractIssuedTokenType.php:70:16: NullableReturnStatement: The declared return type 'SimpleSAML\WSSecurity\XML\sp\Issuer|SimpleSAML\WSSecurity\XML\sp\IssuerName' for SimpleSAML\WSSecurity\XML\sp\AbstractIssuedTokenType::getIssuer is not nullable, but the function returns 'SimpleSAML\WSSecurity\XML\sp\Issuer|SimpleSAML\WSSecurity\XML\sp\IssuerName|null' (see https://psalm.dev/139)
RedundantCondition: src/XML/sp/AbstractIssuedTokenType.php#L169
src/XML/sp/AbstractIssuedTokenType.php:169:13: RedundantCondition: SimpleSAML\WSSecurity\XML\sp\Issuer|SimpleSAML\WSSecurity\XML\sp\IssuerName can never contain null (see https://psalm.dev/122)
UndefinedInterfaceMethod: src/XML/sp/AbstractIssuedTokenType.php#L176
src/XML/sp/AbstractIssuedTokenType.php:176:19: UndefinedInterfaceMethod: Method SimpleSAML\XML\ElementInterface::toXML does not exist (see https://psalm.dev/181)
UndefinedInterfaceMethod: src/XML/sp/AbstractKeyValueTokenType.php#L147
src/XML/sp/AbstractKeyValueTokenType.php:147:19: UndefinedInterfaceMethod: Method SimpleSAML\XML\ElementInterface::toXML does not exist (see https://psalm.dev/181)
UndefinedInterfaceMethod: src/XML/sp/AbstractRequestSecurityTokenTemplateType.php#L145
src/XML/sp/AbstractRequestSecurityTokenTemplateType.php:145:19: UndefinedInterfaceMethod: Method SimpleSAML\XML\ElementInterface::toXML does not exist (see https://psalm.dev/181)
InvalidNullableReturnType: src/XML/sp/AbstractSerElementsType.php#L71
src/XML/sp/AbstractSerElementsType.php:71:16: InvalidNullableReturnType: The declared return type 'string' for SimpleSAML\WSSecurity\XML\sp\AbstractSerElementsType::getXPathVersion is not nullable, but 'null|string' contains null (see https://psalm.dev/144)
NullableReturnStatement: src/XML/sp/AbstractSerElementsType.php#L75
src/XML/sp/AbstractSerElementsType.php:75:16: NullableReturnStatement: The declared return type 'string' for SimpleSAML\WSSecurity\XML\sp\AbstractSerElementsType::getXPathVersion is not nullable, but the function returns 'null|string' (see https://psalm.dev/139)
RedundantCondition: src/XML/sp/AbstractSerElementsType.php#L140
src/XML/sp/AbstractSerElementsType.php:140:13: RedundantCondition: string can never contain null (see https://psalm.dev/122)
UndefinedInterfaceMethod: src/XML/sp/AbstractSerElementsType.php#L149
src/XML/sp/AbstractSerElementsType.php:149:19: UndefinedInterfaceMethod: Method SimpleSAML\XML\ElementInterface::toXML does not exist (see https://psalm.dev/181)
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)