Skip to content

Commit

Permalink
add casting to double val to prevent string
Browse files Browse the repository at this point in the history
  • Loading branch information
yudistirasd committed Mar 19, 2024
1 parent 7cb6787 commit d02ab1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FHIRTenant/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ public function addPhysicalType($physical_type = null)
public function addPosition($latitude = null, $longitude = null)
{
$this->location['position'] = [
'latitude' => $latitude ? $latitude : $this->profile->lat,
'longitude' => $longitude ? $longitude : $this->profile->long,
'latitude' => doubleval($latitude ? $latitude : $this->profile->lat),
'longitude' => doubleval($longitude ? $longitude : $this->profile->long),
];
}

Expand Down

0 comments on commit d02ab1f

Please sign in to comment.