From 8af5454d31ab5833f7b8c74c3176e308374fcf8d Mon Sep 17 00:00:00 2001 From: Di Date: Sat, 27 Dec 2025 20:51:02 +0400 Subject: [PATCH] Fix deprecated ord() for PHP 8.4+ --- lib/LongitudeOne/Geo/WKB/Reader.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/LongitudeOne/Geo/WKB/Reader.php b/lib/LongitudeOne/Geo/WKB/Reader.php index 07a80c4..df8a5c6 100644 --- a/lib/LongitudeOne/Geo/WKB/Reader.php +++ b/lib/LongitudeOne/Geo/WKB/Reader.php @@ -68,9 +68,8 @@ public function load(string $input): void $this->position = 0; $this->previous = 0; - if (ord($input) < 32) { + if (ord($input[0]) < 32) { $this->input = $input; - return; }