* Fix JSON Dot direct array Allow consuming a JSON array in which entries are top level https://github.com/FreshRSS/FreshRSS/issues/6474 * Allow $ as root
@@ -21,7 +21,7 @@ final class FreshRSS_dotNotation_Util
return static::value($default);
}
/** @var \ArrayAccess<string,mixed>|array<string,mixed> $array */
- if ($key === null || $key === '') {
+ if (in_array($key, [null, '', '.', '$'], true)) {
return $array;