Add wst classes #325
php.yml
on: push
Annotations
6 errors and 11 warnings
InvalidArgument:
tests/WSSecurity/XML/wst/CodeTest.php#L49
tests/WSSecurity/XML/wst/CodeTest.php:49:26: InvalidArgument: Argument 1 of SimpleSAML\WSSecurity\XML\wst\Code::__construct expects array<array-key, string>, but list{enum(SimpleSAML\WSSecurity\XML\wst\StatusCodeEnum::Invalid)} provided (see https://psalm.dev/004)
|
InvalidArgument:
tests/WSSecurity/XML/wst/ComputedKeyTest.php#L53
tests/WSSecurity/XML/wst/ComputedKeyTest.php:53:40: InvalidArgument: Argument 1 of SimpleSAML\WSSecurity\XML\wst\ComputedKey::__construct expects array<array-key, string>, but list{enum(SimpleSAML\WSSecurity\XML\wst\ComputedKeyEnum::PSHA1)} provided (see https://psalm.dev/004)
|
InvalidArgument:
tests/WSSecurity/XML/wst/KeyTypeTest.php#L53
tests/WSSecurity/XML/wst/KeyTypeTest.php:53:32: InvalidArgument: Argument 1 of SimpleSAML\WSSecurity\XML\wst\KeyType::__construct expects array<array-key, string>, but list{enum(SimpleSAML\WSSecurity\XML\wst\KeyTypeEnum::PublicKey)} provided (see https://psalm.dev/004)
|
InvalidArgument:
tests/WSSecurity/XML/wst/RequestTypeTest.php#L53
tests/WSSecurity/XML/wst/RequestTypeTest.php:53:40: InvalidArgument: Argument 1 of SimpleSAML\WSSecurity\XML\wst\RequestType::__construct expects array<array-key, string>, but list{enum(SimpleSAML\WSSecurity\XML\wst\RequestTypeEnum::Issue)} provided (see https://psalm.dev/004)
|
InvalidArgument:
tests/WSSecurity/XML/wst/StatusTest.php#L55
tests/WSSecurity/XML/wst/StatusTest.php:55:26: InvalidArgument: Argument 1 of SimpleSAML\WSSecurity\XML\wst\Code::__construct expects array<array-key, string>, but list{enum(SimpleSAML\WSSecurity\XML\wst\StatusCodeEnum::Invalid)} provided (see https://psalm.dev/004)
|
Quality control
Process completed with exit code 2.
|
ArgumentTypeCoercion:
src/XML/auth/AbstractClaimType.php#L207
src/XML/auth/AbstractClaimType.php:207:13: ArgumentTypeCoercion: Argument 7 of SimpleSAML\WSSecurity\XML\auth\AbstractClaimType::__construct expects list<SimpleSAML\XML\Attribute>, but parent type array<int, SimpleSAML\XML\Attribute> provided (see https://psalm.dev/193)
|
ArgumentTypeCoercion:
src/XML/auth/AbstractDescriptionType.php#L55
src/XML/auth/AbstractDescriptionType.php:55:46: ArgumentTypeCoercion: Argument 2 of SimpleSAML\WSSecurity\XML\auth\AbstractDescriptionType::__construct expects list<SimpleSAML\XML\Attribute>, but parent type array<int, SimpleSAML\XML\Attribute> provided (see https://psalm.dev/193)
|
ArgumentTypeCoercion:
src/XML/auth/AbstractDisplayNameType.php#L55
src/XML/auth/AbstractDisplayNameType.php:55:46: ArgumentTypeCoercion: Argument 2 of SimpleSAML\WSSecurity\XML\auth\AbstractDisplayNameType::__construct expects list<SimpleSAML\XML\Attribute>, but parent type array<int, SimpleSAML\XML\Attribute> provided (see https://psalm.dev/193)
|
ArgumentTypeCoercion:
src/XML/auth/AbstractDisplayValueType.php#L55
src/XML/auth/AbstractDisplayValueType.php:55:46: ArgumentTypeCoercion: Argument 2 of SimpleSAML\WSSecurity\XML\auth\AbstractDisplayValueType::__construct expects list<SimpleSAML\XML\Attribute>, but parent type array<int, SimpleSAML\XML\Attribute> provided (see https://psalm.dev/193)
|
PossiblyNullArgument:
src/XML/auth/AbstractEncryptedValueType.php#L94
src/XML/auth/AbstractEncryptedValueType.php:94:50: PossiblyNullArgument: Argument 2 of DOMElement::setAttribute cannot be null, possibly null value provided (see https://psalm.dev/078)
|
UnsafeInstantiation:
src/XML/auth/AbstractValueInRangeType.php#L50
src/XML/auth/AbstractValueInRangeType.php:50: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)
|
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)
|
RiskyTruthyFalsyComparison:
src/XML/fed/AbstractFederationType.php#L68
src/XML/fed/AbstractFederationType.php:68:16: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
ArgumentTypeCoercion:
src/XML/fed/AbstractFederationType.php#L100
src/XML/fed/AbstractFederationType.php:100:13: ArgumentTypeCoercion: Argument 3 of SimpleSAML\WSSecurity\XML\fed\AbstractFederationType::__construct expects list<SimpleSAML\XML\Attribute>, but parent type array<int, SimpleSAML\XML\Attribute> provided (see https://psalm.dev/193)
|
PossiblyNullArgument:
src/XML/fed/AbstractFederationType.php#L116
src/XML/fed/AbstractFederationType.php:116:46: 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#L76
tests/WSSecurity/XML/auth/ConstrainedValueTest.php:76: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)
|