From 22120a7510e79e4056c388c59d0137695c6354d8 Mon Sep 17 00:00:00 2001 From: Chris Thompson Date: Thu, 18 Dec 2025 17:58:50 -0800 Subject: [PATCH] Fix PHP 8+ compatibility issues - Fix http_build_query deprecation warning by replacing null with empty string - Fix ignore404 array key access by adding isset() check These fixes resolve PHP 8+ compatibility issues where: 1. http_build_query() no longer accepts null for numeric_prefix parameter 2. Array key access without isset() check causes warnings/errors in PHP 8+ --- src/RemoteLRS.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RemoteLRS.php b/src/RemoteLRS.php index 5a354c3..5c67539 100644 --- a/src/RemoteLRS.php +++ b/src/RemoteLRS.php @@ -118,7 +118,7 @@ protected function sendRequest($method, $resource) { } } if (isset($options['params']) && count($options['params']) > 0) { - $url .= '?' . http_build_query($options['params'], null, '&', PHP_QUERY_RFC3986); + $url .= '?' . http_build_query($options['params'], '', '&', PHP_QUERY_RFC3986); } if (($method === 'PUT' || $method === 'POST') && isset($options['content'])) { @@ -1219,4 +1219,4 @@ public function setHeaders($value) { return $this; } public function getHeaders() { return $this->headers; } -} +} \ No newline at end of file