Implement generic version of testUnmarshalling #2757
php.yml
on: push
Annotations
21 errors and 12 warnings
InvalidArgument:
src/SAML2/Assertion/Transformer/NameIdDecryptionTransformer.php#L103
src/SAML2/Assertion/Transformer/NameIdDecryptionTransformer.php:103:25: InvalidArgument: Argument 1 of SimpleSAML\SAML2\XML\saml\Subject::__construct expects SimpleSAML\SAML2\XML\saml\IdentifierInterface|null, but SimpleSAML\XML\ElementInterface provided (see https://psalm.dev/004)
|
PossiblyInvalidArgument:
src/SAML2/Binding.php#L102
src/SAML2/Binding.php:102:53: PossiblyInvalidArgument: Argument 2 of array_key_exists expects array<array-key, mixed>, but possibly different type array<array-key, mixed>|null|object provided (see https://psalm.dev/092)
|
PossiblyInvalidArgument:
src/SAML2/Binding.php#L102
src/SAML2/Binding.php:102:97: PossiblyInvalidArgument: Argument 2 of array_key_exists expects array<array-key, mixed>, but possibly different type array<array-key, mixed>|null|object provided (see https://psalm.dev/092)
|
PossiblyInvalidArgument:
src/SAML2/Binding.php#L104
src/SAML2/Binding.php:104:55: PossiblyInvalidArgument: Argument 2 of array_key_exists expects array<array-key, mixed>, but possibly different type array<array-key, mixed>|null|object provided (see https://psalm.dev/092)
|
MissingTemplateParam:
src/SAML2/Certificate/Key.php#L20
src/SAML2/Certificate/Key.php:20:22: MissingTemplateParam: SimpleSAML\SAML2\Certificate\Key has missing template params when extending ArrayAccess, expecting 2 (see https://psalm.dev/182)
|
UndefinedClass:
src/SAML2/Certificate/PrivateKeyLoader.php#L48
src/SAML2/Certificate/PrivateKeyLoader.php:48:24: UndefinedClass: Class, interface or enum named SimpleSAML\XMLSecurity\XMLSecurityKey does not exist (see https://psalm.dev/019)
|
UndefinedClass:
src/SAML2/Certificate/PrivateKeyLoader.php#L48
src/SAML2/Certificate/PrivateKeyLoader.php:48:39: UndefinedClass: Class, interface or enum named SimpleSAML\XMLSecurity\XMLSecurityKey does not exist (see https://psalm.dev/019)
|
UndefinedClass:
src/SAML2/Certificate/PrivateKeyLoader.php#L74
src/SAML2/Certificate/PrivateKeyLoader.php:74:73: UndefinedClass: Class, interface or enum named SimpleSAML\XMLSecurity\XMLSecurityKey does not exist (see https://psalm.dev/019)
|
UndefinedClass:
src/SAML2/HTTPArtifact.php#L95
src/SAML2/HTTPArtifact.php:95:16: UndefinedClass: Class, interface or enum named SimpleSAML\Utils\HTTP does not exist (see https://psalm.dev/019)
|
UndefinedClass:
src/SAML2/HTTPArtifact.php#L168
src/SAML2/HTTPArtifact.php:168:30: UndefinedClass: Class, interface or enum named SimpleSAML\Configuration does not exist (see https://psalm.dev/019)
|
UndefinedPropertyFetch:
tests/SAML2/XML/md/EncryptionMethodTest.php#L110
tests/SAML2/XML/md/EncryptionMethodTest.php:110:35: UndefinedPropertyFetch: Instance property DOMNameSpaceNode::$textContent is not defined (see https://psalm.dev/039)
|
UndefinedAttributeClass:
tests/SAML2/XML/md/EntityDescriptorTest.php#L355
tests/SAML2/XML/md/EntityDescriptorTest.php:355:7: UndefinedAttributeClass: Attribute class SimpleSAML\Test\SAML2\XML\md\Override does not exist (see https://psalm.dev/241)
|
UndefinedAttributeClass:
tests/SAML2/XML/md/ExtensionsTest.php#L153
tests/SAML2/XML/md/ExtensionsTest.php:153:7: UndefinedAttributeClass: Attribute class SimpleSAML\Test\SAML2\XML\md\Override does not exist (see https://psalm.dev/241)
|
UndefinedAttributeClass:
tests/SAML2/XML/md/RoleDescriptorTest.php#L173
tests/SAML2/XML/md/RoleDescriptorTest.php:173:7: UndefinedAttributeClass: Attribute class SimpleSAML\Test\SAML2\XML\md\Override does not exist (see https://psalm.dev/241)
|
UndefinedPropertyFetch:
tests/SAML2/XML/mdui/UIInfoTest.php#L159
tests/SAML2/XML/mdui/UIInfoTest.php:159:61: UndefinedPropertyFetch: Instance property DOMNameSpaceNode::$textContent is not defined (see https://psalm.dev/039)
|
UndefinedAttributeClass:
tests/SAML2/XML/saml/AssertionTest.php#L194
tests/SAML2/XML/saml/AssertionTest.php:194:7: UndefinedAttributeClass: Attribute class SimpleSAML\Test\SAML2\XML\saml\Override does not exist (see https://psalm.dev/241)
|
UndefinedPropertyFetch:
tests/SAML2/XML/saml/AssertionTest.php#L1207
tests/SAML2/XML/saml/AssertionTest.php:1207:43: UndefinedPropertyFetch: Instance property DOMNameSpaceNode::$textContent is not defined (see https://psalm.dev/039)
|
UndefinedAttributeClass:
tests/SAML2/XML/saml/BaseIDTest.php#L97
tests/SAML2/XML/saml/BaseIDTest.php:97:7: UndefinedAttributeClass: Attribute class SimpleSAML\Test\SAML2\XML\saml\Override does not exist (see https://psalm.dev/241)
|
UndefinedAttributeClass:
tests/SAML2/XML/saml/StatementTest.php#L95
tests/SAML2/XML/saml/StatementTest.php:95:7: UndefinedAttributeClass: Attribute class SimpleSAML\Test\SAML2\XML\saml\Override does not exist (see https://psalm.dev/241)
|
UndefinedAttributeClass:
tests/SAML2/XML/saml/SubjectTest.php#L254
tests/SAML2/XML/saml/SubjectTest.php:254:7: UndefinedAttributeClass: Attribute class SimpleSAML\Test\SAML2\XML\saml\Override does not exist (see https://psalm.dev/241)
|
Quality control
Process completed with exit code 1.
|
InvalidDocblockParamName:
src/SAML2/XML/md/AttributeAuthorityDescriptor.php#L31
src/SAML2/XML/md/AttributeAuthorityDescriptor.php:31:68: InvalidDocblockParamName: Incorrect param name $asssertionIDRequestService in docblock for SimpleSAML\SAML2\XML\md\AttributeAuthorityDescriptor::__construct (see https://psalm.dev/187)
|
InvalidDocblockParamName:
src/SAML2/XML/mdui/UIInfo.php#L232
src/SAML2/XML/mdui/UIInfo.php:232:8: InvalidDocblockParamName: Incorrect param name $items in docblock for SimpleSAML\SAML2\XML\mdui\UIInfo::testLocalizedElements (see https://psalm.dev/187)
|
PossiblyNullPropertyFetch:
tests/SAML2/XML/md/EncryptionMethodTest.php#L110
tests/SAML2/XML/md/EncryptionMethodTest.php:110:35: PossiblyNullPropertyFetch: Cannot get property on possibly null variable $keySizeElements[0] of type DOMNameSpaceNode|DOMNode|null (see https://psalm.dev/082)
|
PossiblyNullReference:
tests/SAML2/XML/md/EntityDescriptorTest.php#L277
tests/SAML2/XML/md/EntityDescriptorTest.php:277:75: PossiblyNullReference: Cannot call method format on possibly null value (see https://psalm.dev/083)
|
PossiblyNullReference:
tests/SAML2/XML/md/EntityDescriptorTest.php#L395
tests/SAML2/XML/md/EntityDescriptorTest.php:395:89: PossiblyNullReference: Cannot call method format on possibly null value (see https://psalm.dev/083)
|
PossiblyNullReference:
tests/SAML2/XML/md/RoleDescriptorTest.php#L191
tests/SAML2/XML/md/RoleDescriptorTest.php:191:83: PossiblyNullReference: Cannot call method format on possibly null value (see https://psalm.dev/083)
|
PossiblyNullReference:
tests/SAML2/XML/md/RoleDescriptorTest.php#L239
tests/SAML2/XML/md/RoleDescriptorTest.php:239:83: PossiblyNullReference: Cannot call method format on possibly null value (see https://psalm.dev/083)
|
PossiblyNullReference:
tests/SAML2/XML/md/RoleDescriptorTest.php#L257
tests/SAML2/XML/md/RoleDescriptorTest.php:257:54: PossiblyNullReference: Cannot call method saveXML on possibly null value (see https://psalm.dev/083)
|
PossiblyInvalidArgument:
tests/SAML2/XML/mdui/UIInfoTest.php#L152
tests/SAML2/XML/mdui/UIInfoTest.php:152:36: PossiblyInvalidArgument: Argument 1 of SimpleSAML\SAML2\Utils\XPath::getXPath expects DOMNode, but possibly different type DOMNameSpaceNode|DOMNode|null provided (see https://psalm.dev/092)
|
PossiblyInvalidArgument:
tests/SAML2/XML/mdui/UIInfoTest.php#L154
tests/SAML2/XML/mdui/UIInfoTest.php:154:13: PossiblyInvalidArgument: Argument 1 of SimpleSAML\SAML2\Utils\XPath::xpQuery expects DOMNode, but possibly different type DOMNameSpaceNode|DOMNode|null provided (see https://psalm.dev/092)
|
PossiblyNullPropertyFetch:
tests/SAML2/XML/mdui/UIInfoTest.php#L159
tests/SAML2/XML/mdui/UIInfoTest.php:159:61: PossiblyNullPropertyFetch: Cannot get property on possibly null variable $logoElements[0] of type DOMNameSpaceNode|DOMNode|null (see https://psalm.dev/082)
|
PossiblyInvalidArgument:
tests/SAML2/XML/mdui/UIInfoTest.php#L161
tests/SAML2/XML/mdui/UIInfoTest.php:161:36: PossiblyInvalidArgument: Argument 1 of SimpleSAML\SAML2\Utils\XPath::getXPath expects DOMNode, but possibly different type DOMNameSpaceNode|DOMNode|null provided (see https://psalm.dev/092)
|