From 8b671b7be0700ff04962bdb0681bb2b1626367d0 Mon Sep 17 00:00:00 2001 From: Elias Menkens Date: Tue, 15 Feb 2022 23:39:58 +0100 Subject: [PATCH] Add php 8.1 support --- lib/CrEOF/Geo/WKB/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CrEOF/Geo/WKB/Parser.php b/lib/CrEOF/Geo/WKB/Parser.php index ce30e38..bdd93f6 100644 --- a/lib/CrEOF/Geo/WKB/Parser.php +++ b/lib/CrEOF/Geo/WKB/Parser.php @@ -154,7 +154,7 @@ private function readGeometry() } $this->dimensions = $this->getDimensions($this->type); - $this->pointSize = 2 + strlen($this->getDimensionType($this->dimensions)); + $this->pointSize = 2 + strlen($this->getDimensionType($this->dimensions) || ''); $typeName = $this->getTypeName($this->type);