From f1bf6e94d174365f87309d7280df79bc16232a83 Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst <thijs@kinkhorst.com> Date: Mon, 20 Jun 2022 16:37:02 +0000 Subject: [PATCH] Since all it can contain is optional, the 'assets' and 'cache' can be just as optional --- src/SimpleSAML/Module.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SimpleSAML/Module.php b/src/SimpleSAML/Module.php index cb3d9be3b..6268dc41b 100644 --- a/src/SimpleSAML/Module.php +++ b/src/SimpleSAML/Module.php @@ -328,8 +328,8 @@ class Module } - $assetConfig = $config->getConfigItem('assets'); - $cacheConfig = $assetConfig->getConfigItem('caching'); + $assetConfig = $config->getOptionalConfigItem('assets', []); + $cacheConfig = $assetConfig->getOptionalConfigItem('caching', []); $response = new BinaryFileResponse($path); $response->setCache([ // "public" allows response caching even if the request was authenticated, -- GitLab