Merge pull request #44039 from Dreamsorcerer/patch-2

This commit is contained in:
Benjamin Gaussorgues 2024-04-18 20:59:46 +02:00 committed by GitHub
commit 4af9bef712
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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]);