Skip to content

Commit 851d142

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/phpFastCache/CacheManager.php

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

0 commit comments

Comments
 (0)