Skip to content

Commit cc510d4

Browse files
authored
Merge pull request #204 from valentin-dufois/master
Remove use of `Str::slug` when building reverse geocoding cache key
2 parents f8d1680 + e1ab523 commit cc510d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ProviderAndDumperAggregator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function registerProvidersFromConfig(Collection $providers) : self
168168

169169
public function reverse(float $latitude, float $longitude) : self
170170
{
171-
$cacheKey = (new Str)->slug(strtolower(urlencode("{$latitude}-{$longitude}")));
171+
$cacheKey = strtolower(urlencode("{$latitude}-{$longitude}"));
172172
$this->results = $this->cacheRequest($cacheKey, [$latitude, $longitude], "reverse");
173173

174174
return $this;

0 commit comments

Comments
 (0)