Update src/Core/Config/Model/ConfigTransaction.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
pull/12593/head
Philipp 2023-01-03 17:39:32 +01:00 zatwierdzone przez GitHub
rodzic a46cd2fb36
commit beff759c82
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -58,7 +58,8 @@ class ConfigTransaction implements ISetConfigValuesTransactionally
*
* @throws ConfigPersistenceException In case the persistence layer throws errors
*
*/ public function get(string $cat, string $key)
*/
public function get(string $cat, string $key)
{
return !$this->delCache->get($cat, $key) ?
($this->cache->get($cat, $key) ?? $this->config->get($cat, $key)) :