aboutsummaryrefslogtreecommitdiff
path: root/lib/Minz
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-07-31 09:53:21 +0200
committerGravatar GitHub <noreply@github.com> 2025-07-31 09:53:21 +0200
commit97f1bd2dcb5ef2087c3928d84a6188b6fe962229 (patch)
treef11d6230f5ce937d59ca490bda99f7e3a78b131e /lib/Minz
parentf85333e98adff296700e01ece8843aaf94694257 (diff)
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 ```
Diffstat (limited to 'lib/Minz')
-rw-r--r--lib/Minz/Configuration.php8
1 files changed, 4 insertions, 4 deletions
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<int|string,mixed>|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;
}