wsse: add more assertions #205
php.yml
on: push
Annotations
11 warnings
ArgumentTypeCoercion:
src/XML/auth/AbstractClaimType.php#L187
src/XML/auth/AbstractClaimType.php:187:43: ArgumentTypeCoercion: Argument 1 of SimpleSAML\XML\Chunk::__construct expects DOMElement, but parent type DOMNode provided (see https://psalm.dev/193)
|
UnsafeInstantiation:
src/XML/auth/AbstractClaimType.php#L199
src/XML/auth/AbstractClaimType.php:199: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#L229
src/XML/auth/AbstractClaimType.php:229: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)
|
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)
|