Skip to content

Commit

Permalink
🐛 Fix Geocode entity failing when the API gives back an int instead o…
Browse files Browse the repository at this point in the history
…f a float for the geo lat/lng
  • Loading branch information
tgeorgel committed Dec 14, 2022
1 parent 4706c47 commit 86f6d8c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Entities/Geocode.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ class Geocode extends FlexibleDataTransferObject implements EntityContract
{
/**
* Geocode latitude.
*
* @var int|float
*/
public ?float $lat;
public $lat;

/**
* Geocode longitude.
*
* @var int|float
*/
public ?float $lng;
public $lng;
}

0 comments on commit 86f6d8c

Please sign in to comment.