diff --git a/composer.json b/composer.json index f08f503..d7fa6d9 100644 --- a/composer.json +++ b/composer.json @@ -23,9 +23,9 @@ ], "homepage": "https://github.com/Speicher210/business-hours", "require": { - "php": "^8.1 || ^8.2", + "php": "~8.1.0 || ~8.2.0 || ~8.3.0", "ext-json": "*", - "azjezz/psl": "^2.0.1", + "azjezz/psl": "^3.0.0", "webmozart/assert": "^1.9" }, "require-dev": { @@ -56,8 +56,8 @@ }, "config": { "allow-plugins": { - "dealerdirect/phpcodesniffer-composer-installer": true, "composer/package-versions-deprecated": true, + "dealerdirect/phpcodesniffer-composer-installer": true, "ergebnis/composer-normalize": true }, "sort-packages": true diff --git a/src/BusinessHoursBuilder.php b/src/BusinessHoursBuilder.php index 5f3a4cf..ba6fc21 100644 --- a/src/BusinessHoursBuilder.php +++ b/src/BusinessHoursBuilder.php @@ -114,7 +114,7 @@ public static function shiftToTimezone(BusinessHoursInterface $businessHours, Da Dict\sort_by_key( Dict\filter($tmpDays, static fn (array $intervals): bool => $intervals !== []), ), - static fn (int $dayOfWeek, array $intervals): Day => DayBuilder::fromArray($dayOfWeek, $intervals) + static fn (int $dayOfWeek, array $intervals): Day => DayBuilder::fromArray($dayOfWeek, $intervals), ); return new BusinessHours($days, $newTimezone); diff --git a/src/Day/AbstractDay.php b/src/Day/AbstractDay.php index e328824..32308ff 100644 --- a/src/Day/AbstractDay.php +++ b/src/Day/AbstractDay.php @@ -218,7 +218,7 @@ protected function flattenOpeningHoursIntervals(array $openingHoursIntervals): a { $sortedOpeningHoursIntervals = Vec\sort( $openingHoursIntervals, - static fn (TimeIntervalInterface $a, TimeIntervalInterface $b): int => $a->getStart()->compareTo($b->getStart()) + static fn (TimeIntervalInterface $a, TimeIntervalInterface $b): int => $a->getStart()->compareTo($b->getStart()), ); $intervals = [];