Fix constructor signature; elements can be empty #1006
php.yml
on: push
Annotations
10 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)
|
PropertyNotSetInConstructor:
src/Backend/OpenSSL.php#L52
src/Backend/OpenSSL.php:52: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#L55
src/Backend/OpenSSL.php:55: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#L101
src/Backend/OpenSSL.php:101: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)
|
PossiblyNullArrayAccess:
src/CryptoEncoding/PEM.php#L118
src/CryptoEncoding/PEM.php:118:22: PossiblyNullArrayAccess: Cannot access array value on possibly null variable $e of type array{file: string, line: int, message: string, type: int}|null (see https://psalm.dev/079)
|
PossiblyNullOperand:
src/Key/PublicKey.php#L124
src/Key/PublicKey.php:124:25: PossiblyNullOperand: Cannot concatenate with a possibly null null|string (see https://psalm.dev/080)
|
PossiblyNullOperand:
src/Key/PublicKey.php#L128
src/Key/PublicKey.php:128:33: PossiblyNullOperand: Cannot concatenate with a possibly null null|string (see https://psalm.dev/080)
|
PossiblyNullOperand:
src/Key/PublicKey.php#L129
src/Key/PublicKey.php:129:35: PossiblyNullOperand: Cannot concatenate with a possibly null null|string (see https://psalm.dev/080)
|
PossiblyFalseArgument:
tests/Alg/Signature/HMACSignatureTest.php#L55
tests/Alg/Signature/HMACSignatureTest.php:55:81: PossiblyFalseArgument: Argument 1 of bin2hex cannot be false, possibly string value expected (see https://psalm.dev/104)
|
PossiblyFalseArgument:
tests/Alg/Signature/HMACSignatureTest.php#L61
tests/Alg/Signature/HMACSignatureTest.php:61:21: PossiblyFalseArgument: Argument 1 of bin2hex cannot be false, possibly string value expected (see https://psalm.dev/104)
|
PossiblyFalseArgument:
tests/Alg/Signature/HMACSignatureTest.php#L68
tests/Alg/Signature/HMACSignatureTest.php:68:21: PossiblyFalseArgument: Argument 1 of bin2hex cannot be false, possibly string value expected (see https://psalm.dev/104)
|
PossiblyFalseArgument:
tests/Alg/Signature/HMACSignatureTest.php#L75
tests/Alg/Signature/HMACSignatureTest.php:75:21: PossiblyFalseArgument: Argument 1 of bin2hex cannot be false, possibly string value expected (see https://psalm.dev/104)
|
PossiblyFalseArgument:
tests/Alg/Signature/HMACSignatureTest.php#L83
tests/Alg/Signature/HMACSignatureTest.php:83:21: PossiblyFalseArgument: Argument 1 of bin2hex cannot be false, possibly string value expected (see https://psalm.dev/104)
|
PossiblyFalseArgument:
tests/Alg/Signature/HMACSignatureTest.php#L88
tests/Alg/Signature/HMACSignatureTest.php:88:81: PossiblyFalseArgument: Argument 1 of bin2hex cannot be false, possibly string value expected (see https://psalm.dev/104)
|
PossiblyFalseArgument:
tests/Alg/Signature/RSASignatureTest.php#L62
tests/Alg/Signature/RSASignatureTest.php:62:25: PossiblyFalseArgument: Argument 1 of bin2hex cannot be false, possibly string value expected (see https://psalm.dev/104)
|
PossiblyFalseArgument:
tests/Alg/Signature/RSASignatureTest.php#L72
tests/Alg/Signature/RSASignatureTest.php:72:21: PossiblyFalseArgument: Argument 1 of bin2hex cannot be false, possibly string value expected (see https://psalm.dev/104)
|
PossiblyFalseArgument:
tests/Alg/Signature/RSASignatureTest.php#L81
tests/Alg/Signature/RSASignatureTest.php:81:21: PossiblyFalseArgument: Argument 1 of bin2hex cannot be false, possibly string value expected (see https://psalm.dev/104)
|
PossiblyFalseArgument:
tests/Alg/Signature/RSASignatureTest.php#L90
tests/Alg/Signature/RSASignatureTest.php:90:21: PossiblyFalseArgument: Argument 1 of bin2hex cannot be false, possibly string value expected (see https://psalm.dev/104)
|