Skip to content

Commit aa21f52

Browse files
committed
fix: 移除Implicit nullable parameters,php8.4中显式声明null
1 parent 81be4d0 commit aa21f52

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Commands/DumpServerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class DumpServerCommand extends Command
3030
*/
3131
protected $server;
3232

33-
public function __construct(string $name = null)
33+
public function __construct(?string $name = null)
3434
{
3535
parent::__construct($name);
3636

src/Dumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Dumper
2424
* @param \Symfony\Component\VarDumper\Server\Connection|null $connection
2525
* @return void
2626
*/
27-
public function __construct(Connection $connection = null)
27+
public function __construct(?Connection $connection = null)
2828
{
2929
$this->connection = $connection;
3030
}

src/RequestContextProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class RequestContextProvider implements ContextProviderInterface
3535
*
3636
* @param Request $currentRequest
3737
*/
38-
public function __construct(Request $currentRequest = null)
38+
public function __construct(?Request $currentRequest = null)
3939
{
4040
$this->currentRequest = $currentRequest;
4141
$this->cloner = new VarCloner;

0 commit comments

Comments
 (0)