Skip to content

Commit aed7085

Browse files
committed
Remove UnitEnum to allow usage in older versions
1 parent ea8209b commit aed7085

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Rotater.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ public function makeBatch(bool $withHorizon=false): PendingBatch
283283
$queue = config('rotation.queue', 'default');
284284

285285
if ($queue !== 'default') {
286-
if (!is_string($queue) && !($queue instanceof \UnitEnum)) {
287-
throw new ConfigurationException('The configured queue must be a string or an instance of UnitEnum. (config path: rotation.queue)');
286+
if (!is_string($queue)) {
287+
throw new ConfigurationException('The configured queue must be a string. (config path: rotation.queue)');
288288
}
289289
$batch->onQueue($queue);
290290
}

0 commit comments

Comments
 (0)