Skip to content
Browse files

FIX: throw an exception when the key hash function does not exist ins…

…tead of defaulting to md5.
  • Loading branch information...
1 parent f51fbae commit 3f23ded6b66670c6edc86c6cefa3521afa912d09 @pwhelan pwhelan committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Stash/Driver/FileSystem.php
View
2 src/Stash/Driver/FileSystem.php
@@ -96,7 +96,7 @@ public function __construct(array $options = array())
$this->keyHashFunction = $options['keyHashFunction'];
}
else {
- $this->keyHashFunction = 'md5';
+ throw new RuntimeException('Key Hash Function does not exist');
}
$this->memStoreLimit = (int)$options['memKeyLimit'];

0 comments on commit 3f23ded

Please sign in to comment.
Something went wrong with that request. Please try again.