File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -432,11 +432,13 @@ public function events()
432
432
/**
433
433
* Specify the cache store that should be used to store mutexes.
434
434
*
435
- * @param string $store
435
+ * @param \UnitEnum| string $store
436
436
* @return $this
437
437
*/
438
438
public function useCache ($ store )
439
439
{
440
+ $ store = enum_value ($ store );
441
+
440
442
if ($ this ->eventMutex instanceof CacheAware) {
441
443
$ this ->eventMutex ->useStore ($ store );
442
444
}
Original file line number Diff line number Diff line change 14
14
* @method static bool serverShouldRun(\Illuminate\Console\Scheduling\Event $event, \DateTimeInterface $time)
15
15
* @method static \Illuminate\Support\Collection dueEvents(\Illuminate\Contracts\Foundation\Application $app)
16
16
* @method static \Illuminate\Console\Scheduling\Event[] events()
17
- * @method static \Illuminate\Console\Scheduling\Schedule useCache(string $store)
17
+ * @method static \Illuminate\Console\Scheduling\Schedule useCache(\UnitEnum| string $store)
18
18
* @method static void macro(string $name, object|callable $macro)
19
19
* @method static void mixin(object $mixin, bool $replace = true)
20
20
* @method static bool hasMacro(string $name)
You can’t perform that action at this time.
0 commit comments