Skip to content

Commit

Permalink
Using a static closure
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Sep 20, 2023
1 parent 72c9519 commit e5b1ecc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private function countDays(array $terms): int
return count(
array_unique(
array_map(
function ($date) {
static function ($date) {
return $date->__toString();
},
$days,
Expand Down

0 comments on commit e5b1ecc

Please sign in to comment.