From 92c3a43b9ee076e75f0b8879dbc7052b53618ad1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C5=A1a=20Stamenkovi=C4=87?= Date: Thu, 5 Jun 2025 16:26:40 +0200 Subject: [PATCH] Deprecated: Foolz\SphinxQL\SphinxQL::__construct(): Implicitly marking parameter $connection as nullable is deprecated Fixes #214 --- src/SphinxQL.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SphinxQL.php b/src/SphinxQL.php index ddcd3e6..d4f35a3 100644 --- a/src/SphinxQL.php +++ b/src/SphinxQL.php @@ -219,7 +219,7 @@ class SphinxQL /** * @param ConnectionInterface|null $connection */ - public function __construct(ConnectionInterface $connection = null) + public function __construct(?ConnectionInterface $connection = null) { $this->connection = $connection; } @@ -304,7 +304,7 @@ public function executeBatch() * * @return SphinxQL A new SphinxQL object with the current object referenced */ - public function enqueue(SphinxQL $next = null) + public function enqueue(?SphinxQL $next = null) { if ($next === null) { $next = new static($this->getConnection());