diff --git a/src/Illuminate/Foundation/helpers.php b/src/Illuminate/Foundation/helpers.php index caa4d5d639bb..700c2d7e1871 100644 --- a/src/Illuminate/Foundation/helpers.php +++ b/src/Illuminate/Foundation/helpers.php @@ -228,7 +228,7 @@ function broadcast($event = null) * @param dynamic key|key,default|data,expiration|null * @return mixed|\Illuminate\Cache\CacheManager * - * @throws \Exception + * @throws \InvalidArgumentException */ function cache() { @@ -243,7 +243,7 @@ function cache() } if (! is_array($arguments[0])) { - throw new Exception( + throw new InvalidArgumentException( 'When setting a value in the cache, you must pass an array of key / value pairs.' ); }