[PHP8.1][PHP8.2] Bugfixes (Image Picker)

This commit is contained in:
Karol Orzeł
2023-03-30 17:51:47 +02:00
parent 8486cab33d
commit 51388e0a76
@@ -222,7 +222,7 @@ class TwigExtension extends AbstractExtension implements GlobalsInterface
*/
public function jsonDecodeFilter($str, $assoc = false, $depth = 512, $options = 0)
{
return json_decode(html_entity_decode($str), $assoc, $depth, $options);
return json_decode(html_entity_decode($str ?? ''), $assoc, $depth, $options);
}
/**