must be between 1 and 7¶
Description¶
When processing days of the week as an integers, the days are represented by the integers from 1 (Monday) to 7 (Sunday). Other values are non used, and are reported as faulty.
Example¶
<?php
$c = new IntlGregorianCalendar(NULL, 'pt_PT');
try {
var_dump($c->setMinimalDaysInFirstWeek(0));
} catch (\ValueError $e) {
echo $e->getMessage() . \PHP_EOL;
}
?>
Solutions¶
Use an integer with a value between 1 and 7.