Skip to content

Commit

Permalink
Fix GitHub action tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lorisleiva committed Mar 1, 2020
1 parent 7aa1868 commit 784a6f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/DaysOfWeekField.php
Expand Up @@ -36,6 +36,10 @@ public function translateOnce($fields)

public function format()
{
if ($this->value < 0 || $this->value > 7) {
throw new \Exception();
}

return [
0 => 'Sunday',
1 => 'Monday',
Expand Down

0 comments on commit 784a6f6

Please sign in to comment.