fix: regression with updating read-only config

Signed-off-by: Sam Bull <git@sambull.org>
This commit is contained in:
Sam Bull 2024-03-09 15:20:11 +00:00 committed by backportbot[bot]
parent 0a5d9827f7
commit 6ff1f464ce
1 changed files with 0 additions and 4 deletions

View File

@ -153,8 +153,6 @@ class Config {
* @throws HintException
*/
protected function set($key, $value) {
$this->checkReadOnly();
if (!isset($this->cache[$key]) || $this->cache[$key] !== $value) {
// Add change
$this->cache[$key] = $value;
@ -185,8 +183,6 @@ class Config {
* @throws HintException
*/
protected function delete($key) {
$this->checkReadOnly();
if (isset($this->cache[$key])) {
// Delete key from cache
unset($this->cache[$key]);