Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/core/src/Base/Traits/HasCustomerGroups.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,14 @@ public function unscheduleCustomerGroup(
);
}

protected function validateScheduling(Collection $models)
protected function validateScheduling(Collection $models): bool
{
foreach ($models as $model) {
if (is_object($model) && ! ($model instanceof CustomerGroup)) {
return false;
}
}
return true;
}

/**
Expand Down
Loading