Skip to content

Commit

Permalink
Update PSL Library
Browse files Browse the repository at this point in the history
  • Loading branch information
apogadaev authored and dragosprotung committed Sep 28, 2024
1 parent 52fc852 commit 553373a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/BusinessHoursBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/Day/AbstractDay.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit 553373a

Please sign in to comment.