KeyProviderInterface::getKeyValue() doesn't always return a string

Created on 24 April 2023, almost 2 years ago
Updated 31 May 2023, almost 2 years ago

Drupal\key\Plugin\KeyProviderInterface::getKeyValue() currently states that the return type will always be a string, but this is currently not the case as EnvKeyProvider and FileKeyProvider currently return NULL and FALSE in some cases. This could lead to some unexpected notices when implementing these methods, for example 🐛 Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated Postponed: needs info .

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇳🇱Netherlands arkener

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024