Skip to content

Commit

Permalink
Rename variable from '$item' to '$value' in __call() of MainPrefectur…
Browse files Browse the repository at this point in the history
…e for consistency
  • Loading branch information
shimomo committed Jan 12, 2025
1 parent 886ac78 commit 9a04d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MainPrefecture.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function __call(string $name, array $arguments): ?Collection
return $prefectures->get($arguments[0]);
}

return $prefectures->filter(fn($item, $key) =>
return $prefectures->filter(fn($value, $key) =>
Str::contains($key, $arguments[0])
)->last();
}
Expand Down

0 comments on commit 9a04d2a

Please sign in to comment.