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 281ed58 commit bb4035bCopy full SHA for bb4035b
src/Illuminate/Foundation/helpers.php
@@ -228,7 +228,7 @@ function broadcast($event = null)
228
* @param dynamic key|key,default|data,expiration|null
229
* @return mixed|\Illuminate\Cache\CacheManager
230
*
231
- * @throws \Exception
+ * @throws \InvalidArgumentException
232
*/
233
function cache()
234
{
@@ -243,7 +243,7 @@ function cache()
243
}
244
245
if (! is_array($arguments[0])) {
246
- throw new Exception(
+ throw new InvalidArgumentException(
247
'When setting a value in the cache, you must pass an array of key / value pairs.'
248
);
249
0 commit comments