We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aab0525 commit 6e7ce55Copy full SHA for 6e7ce55
1 file changed
lib/SimpleSAML/Module.php
@@ -298,10 +298,9 @@ function ($val) {
298
}
299
300
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);
+
+ $assetConfig = $config->getConfigItem('assets');
+ $cacheConfig = $assetConfig->getConfigItem('caching');
305
$response = new BinaryFileResponse($path);
306
$response->setCache([
307
// "public" allows response caching even if the request was authenticated,
0 commit comments