mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-09 09:19:51 +00:00
rector correction: cast value to string
This commit is contained in:
parent
e8b95f8491
commit
dbb9feb129
@ -65,8 +65,8 @@ class PostalCodeFRFromOpenData
|
|||||||
|
|
||||||
private function handleRecord(array $record): void
|
private function handleRecord(array $record): void
|
||||||
{
|
{
|
||||||
if ('' !== trim($record['_geopoint'])) {
|
if ('' !== trim((string) $record['_geopoint'])) {
|
||||||
[$lat, $lon] = array_map(static fn ($el) => (float) trim($el), explode(',', $record['_geopoint']));
|
[$lat, $lon] = array_map(static fn ($el) => (float) trim($el), explode(',', (string) $record['_geopoint']));
|
||||||
} else {
|
} else {
|
||||||
$lat = $lon = 0.0;
|
$lat = $lon = 0.0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user