Skip to content

Commit

Permalink
Fix qa on DateUtils::getMonthChoices
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis Fortunier committed Nov 8, 2024
1 parent eec2b20 commit 78f77cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/DateUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static function getMonthChoices(string $locale = 'fr_FR'): array
{
$formatter = new \IntlDateFormatter(locale: $locale, dateType: \IntlDateFormatter::FULL, timeType: \IntlDateFormatter::FULL, pattern: 'MMMM');
for ($i = 1; $i <= 12; $i++) {
$month = $formatter->format(strtotime("2000-$i")); // @phpstan-ignore-line MDT the year is arbitrary and does not impact the month
$month = $formatter->format(strtotime("2000-$i")); // MDT the year is arbitrary and does not impact the month
$toReturn[ucfirst((string) $month)] = $i;
}

Expand Down

0 comments on commit 78f77cd

Please sign in to comment.