The deprecation message Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in jwt/src/Plugin/KeyType/JwtHsKeyType.php is thrown on PHP 8.1, when a new file key is added when the file doesn't exist
Steps to reproduce:
- Navigate to /admin/config/system/keys/add to add a key
- Set "Key type" to "JWT HMAC Key"
- Set "Key provider" to "File"
- Set "File location" to a non-existent file
- Save the configuration
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | jwt-3356017-deprecation_message_validation_file_key.patch | 904 bytes | arkener |
Comments
Comment #2
arkener commentedComment #3
pwolanin commentedLooks good, thanks - in a follow-up we should add a test, but I want to get the 1.0 out
Comment #4
pwolanin commentedComment #7
pwolanin commented