Skip to content

Commit 07d5af8

Browse files
authored
Merge pull request #211 from pandabadger/master
Fix PHP 8.4 implicit nullable deprecations
2 parents 6c1b1b4 + 5423fc7 commit 07d5af8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Facet.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Facet
6363
/**
6464
* @param ConnectionInterface|null $connection
6565
*/
66-
public function __construct(ConnectionInterface $connection = null)
66+
public function __construct(?ConnectionInterface $connection = null)
6767
{
6868
$this->connection = $connection;
6969
}
@@ -85,7 +85,7 @@ public function getConnection()
8585
*
8686
* @return Facet
8787
*/
88-
public function setConnection(ConnectionInterface $connection = null)
88+
public function setConnection(?ConnectionInterface $connection = null)
8989
{
9090
$this->connection = $connection;
9191

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)