Skip to content

Commit 6e7ce55

Browse files
committed
Restore original intent - assets / caching settings are mandatory
1 parent aab0525 commit 6e7ce55

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

lib/SimpleSAML/Module.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,9 @@ function ($val) {
298298
}
299299
}
300300

301-
/** @psalm-var \SimpleSAML\Configuration $assetConfig */
302-
$assetConfig = $config->getOptionalConfigItem('assets', null);
303-
/** @psalm-var \SimpleSAML\Configuration $cacheConfig */
304-
$cacheConfig = $assetConfig ?: $assetConfig->getOptionalConfigItem('caching', null);
301+
302+
$assetConfig = $config->getConfigItem('assets');
303+
$cacheConfig = $assetConfig->getConfigItem('caching');
305304
$response = new BinaryFileResponse($path);
306305
$response->setCache([
307306
// "public" allows response caching even if the request was authenticated,

0 commit comments

Comments
 (0)