From 2c85d94680e06ef15c69d3c9adcd2de05dbfb4f7 Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Mon, 23 Dec 2024 21:26:45 +0100 Subject: [PATCH] fix: twig filter `exif_read_data` throws critical error --- system/src/Grav/Common/Twig/Extension/FilesystemExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Twig/Extension/FilesystemExtension.php b/system/src/Grav/Common/Twig/Extension/FilesystemExtension.php index cbafdb246a..ffca35e151 100644 --- a/system/src/Grav/Common/Twig/Extension/FilesystemExtension.php +++ b/system/src/Grav/Common/Twig/Extension/FilesystemExtension.php @@ -272,7 +272,7 @@ public function getimagesize($filename) * @param bool $read_thumbnail * @return array|false */ - public function exif_read_data($filename, ?string $required_sections, bool $as_arrays = false, bool $read_thumbnail = false) + public function exif_read_data($filename, ?string $required_sections = null, bool $as_arrays = false, bool $read_thumbnail = false) { if (!Utils::functionExists('exif_read_data') || !$this->checkFilename($filename)) { return false;