Add missing xenc:EncryptionProperty + xenc:EncryptionProperties #1027
php.yml
on: pull_request
Annotations
15 errors and 13 warnings
MoreSpecificReturnType:
src/Alg/Encryption/EncryptionAlgorithmFactory.php#L78
src/Alg/Encryption/EncryptionAlgorithmFactory.php:78:16: MoreSpecificReturnType: The declared return type 'SimpleSAML\XMLSecurity\Alg\Encryption\EncryptionAlgorithmInterface' for SimpleSAML\XMLSecurity\Alg\Encryption\EncryptionAlgorithmFactory::getAlgorithm is more specific than the inferred return type 'SimpleSAML\XMLSecurity\Alg\AlgorithmInterface' (see https://psalm.dev/070)
|
LessSpecificReturnStatement:
src/Alg/Encryption/EncryptionAlgorithmFactory.php#L86
src/Alg/Encryption/EncryptionAlgorithmFactory.php:86:16: LessSpecificReturnStatement: The type 'SimpleSAML\XMLSecurity\Alg\AlgorithmInterface' is more general than the declared return type 'SimpleSAML\XMLSecurity\Alg\Encryption\EncryptionAlgorithmInterface' for SimpleSAML\XMLSecurity\Alg\Encryption\EncryptionAlgorithmFactory::getAlgorithm (see https://psalm.dev/129)
|
MoreSpecificReturnType:
src/Alg/KeyTransport/KeyTransportAlgorithmFactory.php#L68
src/Alg/KeyTransport/KeyTransportAlgorithmFactory.php:68:16: MoreSpecificReturnType: The declared return type 'SimpleSAML\XMLSecurity\Alg\Encryption\EncryptionAlgorithmInterface' for SimpleSAML\XMLSecurity\Alg\KeyTransport\KeyTransportAlgorithmFactory::getAlgorithm is more specific than the inferred return type 'SimpleSAML\XMLSecurity\Alg\AlgorithmInterface' (see https://psalm.dev/070)
|
LessSpecificReturnStatement:
src/Alg/KeyTransport/KeyTransportAlgorithmFactory.php#L76
src/Alg/KeyTransport/KeyTransportAlgorithmFactory.php:76:16: LessSpecificReturnStatement: The type 'SimpleSAML\XMLSecurity\Alg\AlgorithmInterface' is more general than the declared return type 'SimpleSAML\XMLSecurity\Alg\Encryption\EncryptionAlgorithmInterface' for SimpleSAML\XMLSecurity\Alg\KeyTransport\KeyTransportAlgorithmFactory::getAlgorithm (see https://psalm.dev/129)
|
MoreSpecificReturnType:
src/Alg/Signature/SignatureAlgorithmFactory.php#L79
src/Alg/Signature/SignatureAlgorithmFactory.php:79:16: MoreSpecificReturnType: The declared return type 'SimpleSAML\XMLSecurity\Alg\Signature\SignatureAlgorithmInterface' for SimpleSAML\XMLSecurity\Alg\Signature\SignatureAlgorithmFactory::getAlgorithm is more specific than the inferred return type 'SimpleSAML\XMLSecurity\Alg\AlgorithmInterface' (see https://psalm.dev/070)
|
LessSpecificReturnStatement:
src/Alg/Signature/SignatureAlgorithmFactory.php#L87
src/Alg/Signature/SignatureAlgorithmFactory.php:87:16: LessSpecificReturnStatement: The type 'SimpleSAML\XMLSecurity\Alg\AlgorithmInterface' is more general than the declared return type 'SimpleSAML\XMLSecurity\Alg\Signature\SignatureAlgorithmInterface' for SimpleSAML\XMLSecurity\Alg\Signature\SignatureAlgorithmFactory::getAlgorithm (see https://psalm.dev/129)
|
UndefinedDocblockClass:
src/Backend/EncryptionBackend.php#L21
src/Backend/EncryptionBackend.php:21:16: UndefinedDocblockClass: Docblock-defined class, interface or enum named SimpleSAML\XMLSecurity\Backend\InvalidArgumentException does not exist (see https://psalm.dev/200)
|
PropertyNotSetInConstructor:
src/Backend/OpenSSL.php#L48
src/Backend/OpenSSL.php:48:19: PropertyNotSetInConstructor: Property SimpleSAML\XMLSecurity\Backend\OpenSSL::$blocksize is not defined in constructor of SimpleSAML\XMLSecurity\Backend\OpenSSL or in any methods called in the constructor (see https://psalm.dev/074)
|
PropertyNotSetInConstructor:
src/Backend/OpenSSL.php#L51
src/Backend/OpenSSL.php:51:19: PropertyNotSetInConstructor: Property SimpleSAML\XMLSecurity\Backend\OpenSSL::$keysize is not defined in constructor of SimpleSAML\XMLSecurity\Backend\OpenSSL or in any methods called in the constructor (see https://psalm.dev/074)
|
ArgumentTypeCoercion:
src/Backend/OpenSSL.php#L97
src/Backend/OpenSSL.php:97:43: ArgumentTypeCoercion: Argument 1 of SimpleSAML\XMLSecurity\Utils\Random::generateRandomBytes expects int<1, max>, but parent type false|int provided (see https://psalm.dev/193)
|
InvalidArgument:
tests/XML/xenc/EncryptionPropertiesTest.php#L71
tests/XML/xenc/EncryptionPropertiesTest.php:71:13: InvalidArgument: Argument 1 of SimpleSAML\XMLSecurity\XML\xenc\EncryptionProperty::__construct expects array<array-key, SimpleSAML\XML\SerializableElement>, but list{SimpleSAML\XML\Chunk} provided (see https://psalm.dev/004)
|
InvalidArgument:
tests/XML/xenc/EncryptionPropertiesTest.php#L77
tests/XML/xenc/EncryptionPropertiesTest.php:77:13: InvalidArgument: Argument 1 of SimpleSAML\XMLSecurity\XML\xenc\EncryptionProperty::__construct expects array<array-key, SimpleSAML\XML\SerializableElement>, but list{SimpleSAML\XML\Chunk} provided (see https://psalm.dev/004)
|
InvalidArgument:
tests/XML/xenc/EncryptionPropertiesTest.php#L83
tests/XML/xenc/EncryptionPropertiesTest.php:83:58: InvalidArgument: Argument 1 of SimpleSAML\XMLSecurity\XML\xenc\EncryptionProperties::__construct expects array<array-key, SimpleSAML\XML\EncryptionProperty>, but list{SimpleSAML\XMLSecurity\XML\xenc\EncryptionProperty, SimpleSAML\XMLSecurity\XML\xenc\EncryptionProperty} provided (see https://psalm.dev/004)
|
InvalidArgument:
tests/XML/xenc/EncryptionPropertyTest.php#L62
tests/XML/xenc/EncryptionPropertyTest.php:62:13: InvalidArgument: Argument 1 of SimpleSAML\XMLSecurity\XML\xenc\EncryptionProperty::__construct expects array<array-key, SimpleSAML\XML\SerializableElement>, but list{SimpleSAML\XML\Chunk} provided (see https://psalm.dev/004)
|
Quality control
Process completed with exit code 2.
|
PossiblyNullOperand:
src/Key/PublicKey.php#L121
src/Key/PublicKey.php:121:25: PossiblyNullOperand: Cannot concatenate with a possibly null null|string (see https://psalm.dev/080)
|
PossiblyNullOperand:
src/Key/PublicKey.php#L125
src/Key/PublicKey.php:125:33: PossiblyNullOperand: Cannot concatenate with a possibly null null|string (see https://psalm.dev/080)
|
PossiblyNullOperand:
src/Key/PublicKey.php#L126
src/Key/PublicKey.php:126:35: PossiblyNullOperand: Cannot concatenate with a possibly null null|string (see https://psalm.dev/080)
|
PossiblyFalseArgument:
tests/Alg/Signature/HMACSignatureTest.php#L49
tests/Alg/Signature/HMACSignatureTest.php:49:81: PossiblyFalseArgument: Argument 1 of bin2hex cannot be false, possibly string value expected (see https://psalm.dev/104)
|
PossiblyFalseArgument:
tests/Alg/Signature/HMACSignatureTest.php#L55
tests/Alg/Signature/HMACSignatureTest.php:55:21: PossiblyFalseArgument: Argument 1 of bin2hex cannot be false, possibly string value expected (see https://psalm.dev/104)
|
PossiblyFalseArgument:
tests/Alg/Signature/HMACSignatureTest.php#L62
tests/Alg/Signature/HMACSignatureTest.php:62:21: PossiblyFalseArgument: Argument 1 of bin2hex cannot be false, possibly string value expected (see https://psalm.dev/104)
|
PossiblyFalseArgument:
tests/Alg/Signature/HMACSignatureTest.php#L69
tests/Alg/Signature/HMACSignatureTest.php:69:21: PossiblyFalseArgument: Argument 1 of bin2hex cannot be false, possibly string value expected (see https://psalm.dev/104)
|
PossiblyFalseArgument:
tests/Alg/Signature/HMACSignatureTest.php#L77
tests/Alg/Signature/HMACSignatureTest.php:77:21: PossiblyFalseArgument: Argument 1 of bin2hex cannot be false, possibly string value expected (see https://psalm.dev/104)
|
PossiblyFalseArgument:
tests/Alg/Signature/HMACSignatureTest.php#L82
tests/Alg/Signature/HMACSignatureTest.php:82:81: PossiblyFalseArgument: Argument 1 of bin2hex cannot be false, possibly string value expected (see https://psalm.dev/104)
|
PossiblyFalseArgument:
tests/Alg/Signature/RSASignatureTest.php#L58
tests/Alg/Signature/RSASignatureTest.php:58:25: PossiblyFalseArgument: Argument 1 of bin2hex cannot be false, possibly string value expected (see https://psalm.dev/104)
|
PossiblyFalseArgument:
tests/Alg/Signature/RSASignatureTest.php#L68
tests/Alg/Signature/RSASignatureTest.php:68:21: PossiblyFalseArgument: Argument 1 of bin2hex cannot be false, possibly string value expected (see https://psalm.dev/104)
|
PossiblyFalseArgument:
tests/Alg/Signature/RSASignatureTest.php#L77
tests/Alg/Signature/RSASignatureTest.php:77:21: PossiblyFalseArgument: Argument 1 of bin2hex cannot be false, possibly string value expected (see https://psalm.dev/104)
|
PossiblyFalseArgument:
tests/Alg/Signature/RSASignatureTest.php#L86
tests/Alg/Signature/RSASignatureTest.php:86:21: PossiblyFalseArgument: Argument 1 of bin2hex cannot be false, possibly string value expected (see https://psalm.dev/104)
|