Skip to content

Commit 0fdc6a0

Browse files
committed
Updated "path" configuration validator
1 parent c977a18 commit 0fdc6a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/phpFastCache/CacheManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,8 @@ protected static function validateConfig(array $config)
460460
break;
461461
case 'securityKey':
462462
case 'path':
463-
if (!is_string($configValue)) {
464-
throw new phpFastCacheInvalidConfigurationException("{$configName} must be a string");
463+
if (!is_string($configValue) || (is_bool($configValue) && $configValue)) {
464+
throw new phpFastCacheInvalidConfigurationException("{$configName} must be a string or a false boolean");
465465
}
466466
break;
467467
case 'default_chmod':

0 commit comments

Comments
 (0)