Skip to content

Commit 784a6f6

Browse files
committed
Fix GitHub action tests
1 parent 7aa1868 commit 784a6f6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/DaysOfWeekField.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public function translateOnce($fields)
3636

3737
public function format()
3838
{
39+
if ($this->value < 0 || $this->value > 7) {
40+
throw new \Exception();
41+
}
42+
3943
return [
4044
0 => 'Sunday',
4145
1 => 'Monday',

0 commit comments

Comments
 (0)