Skip to content

Commit

Permalink
Reword invalid cache key exception slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
ravage84 committed Sep 5, 2018
1 parent a200507 commit 2507033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cache/SimpleCacheEngine.php
Expand Up @@ -52,7 +52,7 @@ public function __construct($innerEngine)
protected function ensureValidKey($key)
{
if (!is_string($key) || strlen($key) === 0) {
throw new InvalidArgumentException('Cache keys must be non-empty strings.');
throw new InvalidArgumentException('A cache key must be a non-empty string.');
}
}

Expand Down

0 comments on commit 2507033

Please sign in to comment.