Skip to content

Commit 4ed121d

Browse files
authored
Fix PHP 8.4 implicit nullable deprecations
1 parent 6c1b1b4 commit 4ed121d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SphinxQL.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class SphinxQL
219219
/**
220220
* @param ConnectionInterface|null $connection
221221
*/
222-
public function __construct(ConnectionInterface $connection = null)
222+
public function __construct(?ConnectionInterface $connection = null)
223223
{
224224
$this->connection = $connection;
225225
}
@@ -304,7 +304,7 @@ public function executeBatch()
304304
*
305305
* @return SphinxQL A new SphinxQL object with the current object referenced
306306
*/
307-
public function enqueue(SphinxQL $next = null)
307+
public function enqueue(?SphinxQL $next = null)
308308
{
309309
if ($next === null) {
310310
$next = new static($this->getConnection());

0 commit comments

Comments
 (0)