Skip to content

Commit

Permalink
Merge pull request #4 from pavloniym/master
Browse files Browse the repository at this point in the history
fix: fix default nullable SRID as 0
  • Loading branch information
swen100 authored Aug 19, 2022
2 parents a1b0c46 + 6158644 commit f43ef9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Geometry/Geometry.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ public function setSRID($srid)
if (is_object($geosObj)) {
// @codeCoverageIgnoreStart
/** @noinspection PhpUndefinedMethodInspection */
$geosObj->setSRID($srid);
$geosObj->setSRID($srid ?? 0);
// @codeCoverageIgnoreEnd
}
$this->srid = $srid;
Expand Down

0 comments on commit f43ef9a

Please sign in to comment.