Skip to content

Commit 5423fc7

Browse files
authored
Fix PHP 8.4 implicit nullable deprecations
1 parent 4ed121d commit 5423fc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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

0 commit comments

Comments
 (0)