diff --git a/src/Geometries/Point.php b/src/Geometries/Point.php index 1199447..4176d34 100644 --- a/src/Geometries/Point.php +++ b/src/Geometries/Point.php @@ -15,7 +15,7 @@ public function __construct($lat, $lng, $alt = null) $this->lng = (float)$lng; $this->alt = isset($alt) ? (float)$alt : null; $this->setPrecision( - function_exists('config') ? config('postgis.precision') : 6 + function_exists('config') ? config('postgis.precision', 6) : 6 ); }