Skip to content

Commit

Permalink
Replace is_double with is_float
Browse files Browse the repository at this point in the history
  • Loading branch information
LucWollants committed Aug 7, 2024
1 parent a1afb1e commit c93ddfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Geocoding/Coordinate/Coordinate.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ abstract class Coordinate

public function __construct(float $value)
{
if (!is_double($value)) {
if (!is_float($value)) {
throw new \InvalidArgumentException('Coordinate value should be of type double.');
}

Expand Down

0 comments on commit c93ddfb

Please sign in to comment.