Skip to content
Snippets Groups Projects
Commit a9a815ec authored by Patrick Kenny's avatar Patrick Kenny Committed by Rick Hawkins
Browse files

Issue #3489100 by ptmkenny: Fix deprecations for PHP 8.4

parent 93d5a0ef
No related branches found
No related tags found
1 merge request!35fix null deprecation for php 8.4
Pipeline #353735 passed with warnings
......@@ -50,7 +50,7 @@ class KeyConfigOverrides implements ConfigFactoryOverrideInterface {
* @param \Drupal\Core\Cache\CacheBackendInterface|null $cache_backend
* The cache backend.
*/
public function __construct(ConfigFactoryInterface $config_factory = NULL, CacheBackendInterface $cache_backend = NULL) {
public function __construct(?ConfigFactoryInterface $config_factory = NULL, ?CacheBackendInterface $cache_backend = NULL) {
$this->configFactory = $config_factory ?: \Drupal::configFactory();
$this->cacheBackend = $cache_backend ?: \Drupal::cache('data');
}
......
......@@ -60,7 +60,7 @@ class KeyRepository implements KeyRepositoryInterface {
/**
* {@inheritdoc}
*/
public function getKeys(array $key_ids = NULL) {
public function getKeys(?array $key_ids = NULL) {
return $this->entityTypeManager->getStorage('key')->loadMultiple($key_ids);
}
......
......@@ -17,7 +17,7 @@ interface KeyRepositoryInterface {
* An array of key entities, indexed by ID. Returns an empty array if no
* matching entities are found.
*/
public function getKeys(array $key_ids = NULL);
public function getKeys(?array $key_ids = NULL);
/**
* Get keys that use the specified key provider.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment