We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c5071c commit 472e763Copy full SHA for 472e763
src/phpFastCache/CacheManager.php
@@ -369,11 +369,15 @@ public static function getStaticAllDrivers()
369
}
370
371
/**
372
- * @param string $driverName
+ * @param $driverName
373
* @return string
374
+ * @throws \phpFastCache\Exceptions\phpFastCacheInvalidArgumentException
375
*/
376
public static function standardizeDriverName($driverName)
377
{
378
+ if(!is_string($driverName)){
379
+ throw new phpFastCacheInvalidArgumentException(sprintf('Expected $driverName to be a string got "%s" instead', gettype($driverName)));
380
+ }
381
return ucfirst(strtolower(trim($driverName)));
382
383
0 commit comments