Add wst classes #332
Annotations
8 errors and 10 warnings
Psalm:
src/XML/wst/AbstractBinarySecretType.php#L62
src/XML/wst/AbstractBinarySecretType.php:62:16: InvalidNullableReturnType: The declared return type 'array<array-key, SimpleSAML\WSSecurity\XML\wst\BinarySecretTypeEnum|string>' for SimpleSAML\WSSecurity\XML\wst\AbstractBinarySecretType::getType is not nullable, but 'array<array-key, SimpleSAML\WSSecurity\XML\wst\BinarySecretTypeEnum|string>|null' contains null (see https://psalm.dev/144)
|
Psalm:
src/XML/wst/AbstractBinarySecretType.php#L66
src/XML/wst/AbstractBinarySecretType.php:66:16: NullableReturnStatement: The declared return type 'array<array-key, SimpleSAML\WSSecurity\XML\wst\BinarySecretTypeEnum|string>' for SimpleSAML\WSSecurity\XML\wst\AbstractBinarySecretType::getType is not nullable, but the function returns 'array<array-key, SimpleSAML\WSSecurity\XML\wst\BinarySecretTypeEnum|string>|null' (see https://psalm.dev/139)
|
Psalm:
src/XML/wst/AbstractBinarySecretType.php#L103
src/XML/wst/AbstractBinarySecretType.php:103:47: InvalidArgument: Argument 2 of implode expects array<array-key, null|object{__tostring()}|scalar>, but array<array-key, SimpleSAML\WSSecurity\XML\wst\BinarySecretTypeEnum|string> provided (see https://psalm.dev/004)
|
Psalm:
src/XML/wst/AbstractRequestSecurityTokenCollectionType.php#L38
src/XML/wst/AbstractRequestSecurityTokenCollectionType.php:38:16: UndefinedDocblockClass: Docblock-defined class, interface or enum named SimpleSAML\WSSecurity\XMLwst\RequestSecurityToken does not exist (see https://psalm.dev/200)
|
Psalm:
src/XML/wst/AbstractRequestSecurityTokenCollectionType.php#L77
src/XML/wst/AbstractRequestSecurityTokenCollectionType.php:77:13: UndefinedDocblockClass: Docblock-defined class, interface or enum named SimpleSAML\WSSecurity\XMLwst\RequestSecurityToken does not exist (see https://psalm.dev/200)
|
Psalm:
src/XML/wst/AbstractRequestSecurityTokenResponseCollectionType.php#L50
src/XML/wst/AbstractRequestSecurityTokenResponseCollectionType.php:50:16: UndefinedDocblockClass: Docblock-defined class, interface or enum named SimpleSAML\WSSecurity\XMLwst\RequestSecurityTokenResponse does not exist (see https://psalm.dev/200)
|
Psalm:
src/XML/wst/AbstractRequestSecurityTokenResponseCollectionType.php#L90
src/XML/wst/AbstractRequestSecurityTokenResponseCollectionType.php:90:13: UndefinedDocblockClass: Docblock-defined class, interface or enum named SimpleSAML\WSSecurity\XMLwst\RequestSecurityTokenResponse does not exist (see https://psalm.dev/200)
|
Psalm
Process completed with exit code 2.
|
Psalm:
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)
|
Psalm:
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)
|
Psalm:
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)
|
Psalm:
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)
|
Psalm:
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)
|
Psalm:
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)
|
Psalm:
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)
|
Psalm:
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)
|
Psalm:
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)
|
Psalm:
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)
|
The logs for this run have expired and are no longer available.
Loading