From 64cc6471b12b39b9206fe35a19b8c352c386be0b Mon Sep 17 00:00:00 2001 From: Dave Long <dave@longwaveconsulting.com> Date: Fri, 3 Jan 2025 14:37:48 +0000 Subject: [PATCH] Issue #3485410 by niklan, andypost: \Drupal\Core\KeyValueStore\DatabaseStorage::doSetIfNotExists should be protected --- core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php b/core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php index 44d5d9df13fb..4f3ae72090ba 100644 --- a/core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php +++ b/core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php @@ -167,7 +167,7 @@ public function set($key, $value) { * @return bool * TRUE if the data was set, FALSE if it already existed. */ - public function doSetIfNotExists($key, $value) { + protected function doSetIfNotExists($key, $value) { $result = $this->connection->merge($this->table) ->insertFields([ 'collection' => $this->collection, -- GitLab