From 97f1bd2dcb5ef2087c3928d84a6188b6fe962229 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 31 Jul 2025 09:53:21 +0200 Subject: Fix regression Minz_Configuration (#7765) Follow-up of https://github.com/FreshRSS/FreshRSS/pull/7761 Partially avoid calls to deprecated functions. Avoid warnings: ``` [warning] --- old_entries does not exist in configuration [warning] --- keep_history_default does not exist in configuration ``` --- lib/Minz/Configuration.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/Minz') diff --git a/lib/Minz/Configuration.php b/lib/Minz/Configuration.php index a79c364d3..90beb689f 100644 --- a/lib/Minz/Configuration.php +++ b/lib/Minz/Configuration.php @@ -231,25 +231,25 @@ class Minz_Configuration { * @return array|null */ public function attributeArray(string $key): ?array { - $a = self::param($key, null); + $a = $this->data[$key] ?? null; return is_array($a) ? $a : null; } /** @param non-empty-string $key */ public function attributeBool(string $key): ?bool { - $a = self::param($key, null); + $a = $this->data[$key] ?? null; return is_bool($a) ? $a : null; } /** @param non-empty-string $key */ public function attributeInt(string $key): ?int { - $a = self::param($key, null); + $a = $this->data[$key] ?? null; return is_numeric($a) ? (int)$a : null; } /** @param non-empty-string $key */ public function attributeString(string $key): ?string { - $a = self::param($key, null); + $a = $this->data[$key] ?? null; return is_string($a) ? $a : null; } -- cgit v1.2.3