Skip to content

Commit

Permalink
Merge pull request #143 from DataValues/floatcast
Browse files Browse the repository at this point in the history
Remove not needed float casts
  • Loading branch information
JeroenDeDauw committed Aug 8, 2018
2 parents eff4b7f + 45bf7fc commit 68a45ee
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Values/LatLongValue.php
Expand Up @@ -28,14 +28,6 @@ class LatLongValue extends DataValueObject {
* @throws InvalidArgumentException
*/
public function __construct( float $latitude, float $longitude ) {
if ( is_int( $latitude ) ) {
$latitude = (float)$latitude;
}

if ( is_int( $longitude ) ) {
$longitude = (float)$longitude;
}

$this->assertIsLatitude( $latitude );
$this->assertIsLongitude( $longitude );

Expand Down

0 comments on commit 68a45ee

Please sign in to comment.