Skip to content

Backport RegistrationInfo and PublicationInfo #2740

Backport RegistrationInfo and PublicationInfo

Backport RegistrationInfo and PublicationInfo #2740

Triggered via push November 18, 2023 13:27
Status Failure
Total duration 5m 13s
Artifacts

php.yml

on: push
Matrix: unit-tests-linux
Matrix: unit-tests-windows
Code coverage
0s
Code coverage
Fit to window
Zoom out
Zoom in

Annotations

34 errors and 20 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)
MissingTemplateParam: src/SAML2/Certificate/Key.php#L18
src/SAML2/Certificate/Key.php:18:22: MissingTemplateParam: SimpleSAML\SAML2\Certificate\Key has missing template params when extending ArrayAccess, expecting 2 (see https://psalm.dev/182)
MismatchingDocblockReturnType: src/SAML2/Configuration/CertificateProvider.php#L19
src/SAML2/Configuration/CertificateProvider.php:19:16: MismatchingDocblockReturnType: Docblock has incorrect return type 'iterable<array-key|mixed, mixed>|null', should be 'Traversable|array<array-key, mixed>|null' (see https://psalm.dev/142)
MismatchingDocblockReturnType: src/SAML2/Configuration/IdentityProvider.php#L21
src/SAML2/Configuration/IdentityProvider.php:21:16: MismatchingDocblockReturnType: Docblock has incorrect return type 'iterable<array-key|mixed, mixed>|null', should be 'Traversable|array<array-key, mixed>|null' (see https://psalm.dev/142)
RedundantCondition: src/SAML2/Configuration/PrivateKey.php#L54
src/SAML2/Configuration/PrivateKey.php:54:16: RedundantCondition: string can never contain null (see https://psalm.dev/122)
MismatchingDocblockReturnType: src/SAML2/Configuration/ServiceProvider.php#L22
src/SAML2/Configuration/ServiceProvider.php:22:16: MismatchingDocblockReturnType: Docblock has incorrect return type 'iterable<array-key|mixed, mixed>|null', should be 'Traversable|array<array-key, mixed>|null' (see https://psalm.dev/142)
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)
NullArgument: src/SAML2/HTTPArtifact.php#L171
src/SAML2/HTTPArtifact.php:171:54: NullArgument: Argument 2 of SimpleSAML\SAML2\XML\samlp\ArtifactResolve::__construct cannot be null, null value provided to parameter with type DateTimeImmutable (see https://psalm.dev/057)
UndefinedMethod: src/SAML2/HTTPArtifact.php#L194
src/SAML2/HTTPArtifact.php:194:24: UndefinedMethod: Method SimpleSAML\SAML2\XML\samlp\AbstractMessage::addValidator does not exist (see https://psalm.dev/022)
MissingDependency: tests/SAML2/XML/md/EntityDescriptorTest.php#L405
tests/SAML2/XML/md/EntityDescriptorTest.php:405:33: MissingDependency: SimpleSAML\SAML2\XML\md\UnknownRoleDescriptor depends on class or interface simplesaml\saml2\xml\md\abstractroledescriptor that does not exist (see https://psalm.dev/157)
UndefinedClass: tests/SAML2/XML/md/RoleDescriptorTest.php#L76
tests/SAML2/XML/md/RoleDescriptorTest.php:76:30: UndefinedClass: Class, interface or enum named SimpleSAML\SAML2\XML\md\AbstractRoleDescriptor does not exist (see https://psalm.dev/019)
UndefinedClass: tests/SAML2/XML/md/RoleDescriptorTest.php#L83
tests/SAML2/XML/md/RoleDescriptorTest.php:83:46: UndefinedClass: Class, interface or enum named SimpleSAML\Test\SAML2\CustomRoleDescriptor does not exist (see https://psalm.dev/019)
UndefinedClass: tests/SAML2/XML/md/RoleDescriptorTest.php#L107
tests/SAML2/XML/md/RoleDescriptorTest.php:107:31: UndefinedClass: Class, interface or enum named SimpleSAML\Test\SAML2\CustomRoleDescriptor does not exist (see https://psalm.dev/019)
UndefinedClass: tests/SAML2/XML/md/RoleDescriptorTest.php#L175
tests/SAML2/XML/md/RoleDescriptorTest.php:175:23: UndefinedClass: Class, interface or enum named SimpleSAML\SAML2\XML\md\AbstractRoleDescriptor does not exist (see https://psalm.dev/019)
MissingDependency: tests/SAML2/XML/md/RoleDescriptorTest.php#L224
tests/SAML2/XML/md/RoleDescriptorTest.php:224:23: MissingDependency: SimpleSAML\SAML2\XML\md\UnknownRoleDescriptor depends on class or interface simplesaml\saml2\xml\md\abstractroledescriptor that does not exist (see https://psalm.dev/157)
MissingDependency: tests/SAML2/XML/md/RoleDescriptorTest.php#L273
tests/SAML2/XML/md/RoleDescriptorTest.php:273:9: MissingDependency: SimpleSAML\SAML2\XML\md\UnknownRoleDescriptor depends on class or interface simplesaml\saml2\xml\md\abstractroledescriptor that does not exist (see https://psalm.dev/157)
MissingDependency: tests/SAML2/XML/md/RoleDescriptorTest.php#L287
tests/SAML2/XML/md/RoleDescriptorTest.php:287:9: MissingDependency: SimpleSAML\SAML2\XML\md\UnknownRoleDescriptor depends on class or interface simplesaml\saml2\xml\md\abstractroledescriptor that does not exist (see https://psalm.dev/157)
MissingDependency: tests/SAML2/XML/md/RoleDescriptorTest.php#L301
tests/SAML2/XML/md/RoleDescriptorTest.php:301:9: MissingDependency: SimpleSAML\SAML2\XML\md\UnknownRoleDescriptor depends on class or interface simplesaml\saml2\xml\md\abstractroledescriptor that does not exist (see https://psalm.dev/157)
UndefinedInterfaceMethod: tests/SAML2/XML/mdui/DiscoHintsTest.php#L153
tests/SAML2/XML/mdui/DiscoHintsTest.php:153:73: UndefinedInterfaceMethod: Method SimpleSAML\XML\ElementInterface::getXML does not exist (see https://psalm.dev/181)
Quality control
Process completed with exit code 1.
Unit tests, PHP 8.1, ubuntu-latest: tests/SAML2/XML/md/EntityDescriptorTest.php#L181
Failed asserting that two strings are equal.
Unit tests, PHP 8.1, ubuntu-latest
Process completed with exit code 2.
Unit tests, PHP 8.0, ubuntu-latest: tests/SAML2/XML/md/EntityDescriptorTest.php#L181
Failed asserting that two strings are equal.
Unit tests, PHP 8.0, ubuntu-latest
Process completed with exit code 2.
Unit tests, PHP 8.2, windows-latest: tests/SAML2/XML/md/EntityDescriptorTest.php#L179
Failed asserting that two strings are equal.
Unit tests, PHP 8.2, windows-latest
Process completed with exit code 1.
Unit tests, PHP 8.1, windows-latest
The job was canceled because "windows-latest_8_2" failed.
Unit tests, PHP 8.1, windows-latest: tests/SAML2/XML/md/EntityDescriptorTest.php#L181
Failed asserting that two strings are equal.
Unit tests, PHP 8.1, windows-latest
Process completed with exit code 1.
Unit tests, PHP 8.0, windows-latest
The job was canceled because "windows-latest_8_2" failed.
Unit tests, PHP 8.0, windows-latest
The operation was canceled.
Unit tests, PHP 8.2, ubuntu-latest: tests/SAML2/XML/md/EntityDescriptorTest.php#L179
Failed asserting that two strings are equal.
Unit tests, PHP 8.2, ubuntu-latest
Process completed with exit code 2.
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)
PossiblyNullArgument: src/SAML2/HTTPPost.php#L53
src/SAML2/HTTPPost.php:53:33: PossiblyNullArgument: Argument 1 of base64_encode cannot be null, possibly null value provided (see https://psalm.dev/078)
PossiblyInvalidArgument: src/SAML2/HTTPPost.php#L85
src/SAML2/HTTPPost.php:85:45: 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/HTTPPost.php#L87
src/SAML2/HTTPPost.php:87:52: 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)
ArgumentTypeCoercion: src/SAML2/HTTPPost.php#L94
src/SAML2/HTTPPost.php:94:50: ArgumentTypeCoercion: Argument 1 of SimpleSAML\XML\DOMDocumentFactory::fromString expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
ArgumentTypeCoercion: src/SAML2/HTTPPost.php#L96
src/SAML2/HTTPPost.php:96:52: ArgumentTypeCoercion: Argument 1 of SimpleSAML\XML\DOMDocumentFactory::fromString expects non-empty-string, but parent type false|string provided (see https://psalm.dev/193)
PossiblyInvalidArgument: src/SAML2/HTTPPost.php#L112
src/SAML2/HTTPPost.php:112:44: 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)
PossiblyNullArgument: src/SAML2/HTTPRedirect.php#L65
src/SAML2/HTTPRedirect.php:65:29: PossiblyNullArgument: Argument 1 of gzdeflate cannot be null, possibly null value provided (see https://psalm.dev/078)
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#L394
tests/SAML2/XML/md/EntityDescriptorTest.php:394:89: PossiblyNullReference: Cannot call method format on possibly null value (see https://psalm.dev/083)
ArgumentTypeCoercion: tests/SAML2/XML/saml/AssertionTest.php#L322
tests/SAML2/XML/saml/AssertionTest.php:322:80: ArgumentTypeCoercion: Argument 1 of SimpleSAML\XML\DOMDocumentFactory::fromString expects non-empty-string, but parent type false|null|string provided (see https://psalm.dev/193)
PossiblyNullArgument: tests/SAML2/XML/saml/AssertionTest.php#L322
tests/SAML2/XML/saml/AssertionTest.php:322:80: PossiblyNullArgument: Argument 1 of SimpleSAML\XML\DOMDocumentFactory::fromString cannot be null, possibly null value provided (see https://psalm.dev/078)
PossiblyNullReference: tests/SAML2/XML/saml/AssertionTest.php#L336
tests/SAML2/XML/saml/AssertionTest.php:336:96: PossiblyNullReference: Cannot call method format on possibly null value (see https://psalm.dev/083)
DocblockTypeContradiction: tests/SAML2/XML/saml/AssertionTest.php#L576
tests/SAML2/XML/saml/AssertionTest.php:576:16: DocblockTypeContradiction: Cannot resolve types for $mValue - docblock-defined type array<array-key, SimpleSAML\SAML2\XML\saml\AttributeValue|SimpleSAML\SAML2\XML\saml\IdentifierInterface> does not contain SimpleSAML\SAML2\XML\saml\NameID (see https://psalm.dev/155)
DocblockTypeContradiction: tests/SAML2/XML/saml/AssertionTest.php#L577
tests/SAML2/XML/saml/AssertionTest.php:577:16: DocblockTypeContradiction: Cannot resolve types for $oValue - docblock-defined type array<array-key, SimpleSAML\SAML2\XML\saml\AttributeValue|SimpleSAML\SAML2\XML\saml\IdentifierInterface> does not contain SimpleSAML\SAML2\XML\saml\NameID (see https://psalm.dev/155)
PossiblyNullArgument: tests/SAML2/XML/saml/AssertionTest.php#L583
tests/SAML2/XML/saml/AssertionTest.php:583:53: PossiblyNullArgument: Argument 2 of SimpleSAML\Test\SAML2\XML\saml\AssertionTest::assertXmlStringEqualsXmlString cannot be null, possibly null value provided (see https://psalm.dev/078)
DocblockTypeContradiction: tests/SAML2/XML/saml/AssertionTest.php#L670
tests/SAML2/XML/saml/AssertionTest.php:670:16: DocblockTypeContradiction: Cannot resolve types for $firstValue - docblock-defined type array<array-key, SimpleSAML\SAML2\XML\saml\AttributeValue|SimpleSAML\SAML2\XML\saml\IdentifierInterface> does not contain SimpleSAML\SAML2\XML\saml\NameID (see https://psalm.dev/155)
DocblockTypeContradiction: tests/SAML2/XML/saml/AssertionTest.php#L671
tests/SAML2/XML/saml/AssertionTest.php:671:16: DocblockTypeContradiction: Cannot resolve types for $secondValue - docblock-defined type array<array-key, SimpleSAML\SAML2\XML\saml\AttributeValue|SimpleSAML\SAML2\XML\saml\IdentifierInterface> does not contain SimpleSAML\SAML2\XML\saml\NameID (see https://psalm.dev/155)