Skip to content

Commit

Permalink
fix setSrid() with Geos enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Péter Báthory committed Sep 1, 2022
1 parent c274a50 commit 7e7a9a4
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 @@ -284,7 +284,7 @@ public function setSRID($srid)
if ($this->getGeos()) {
// @codeCoverageIgnoreStart
/** @noinspection PhpUndefinedMethodInspection */
$this->getGeos()->setSRID($srid);
$this->getGeos()->setSRID((int) $srid);
// @codeCoverageIgnoreEnd
}
$this->srid = $srid;
Expand Down

0 comments on commit 7e7a9a4

Please sign in to comment.