From 7e7a9a47640a48bb8a5682d429d62dc01c47bf92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20B=C3=A1thory?= Date: Thu, 1 Sep 2022 14:16:04 +0200 Subject: [PATCH] fix setSrid() with Geos enabled --- src/Geometry/Geometry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Geometry/Geometry.php b/src/Geometry/Geometry.php index 06d843bc..419699a3 100644 --- a/src/Geometry/Geometry.php +++ b/src/Geometry/Geometry.php @@ -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;