diff options
| author | 2024-07-18 00:35:13 +0200 | |
|---|---|---|
| committer | 2024-07-18 00:35:13 +0200 | |
| commit | f21a164c055a5e88b430fa86dce14fc31bfd1afb (patch) | |
| tree | df0d3377491d44ce8464f4c68ef62e2ea2bc14a1 /app/Utils | |
| parent | 783fe19baa0c4d187a318c4fdec8b89e217a26aa (diff) | |
JSON Dot Notation allow string conversion (#6631)
Allow fetching a string from string-friendly types.
Fix https://github.com/FreshRSS/FreshRSS/discussions/6626
Diffstat (limited to 'app/Utils')
| -rw-r--r-- | app/Utils/dotNotationUtil.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Utils/dotNotationUtil.php b/app/Utils/dotNotationUtil.php index a7fb066d1..9c44e5312 100644 --- a/app/Utils/dotNotationUtil.php +++ b/app/Utils/dotNotationUtil.php @@ -55,7 +55,7 @@ final class FreshRSS_dotNotation_Util */ public static function getString($array, ?string $key): ?string { $result = self::get($array, $key, null); - return is_string($result) ? $result : null; + return is_string($result) || is_bool($result) || is_float($result) || is_int($result) ? (string)$result : null; } /** |
