🔧
This commit is contained in:
@@ -27,7 +27,7 @@ class GenerateUlidCommand extends Command
|
||||
{
|
||||
private UlidFactory $factory;
|
||||
|
||||
public function __construct(UlidFactory $factory = null)
|
||||
public function __construct(?UlidFactory $factory = null)
|
||||
{
|
||||
$this->factory = $factory ?? new UlidFactory();
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ class GenerateUuidCommand extends Command
|
||||
{
|
||||
private UuidFactory $factory;
|
||||
|
||||
public function __construct(UuidFactory $factory = null)
|
||||
public function __construct(?UuidFactory $factory = null)
|
||||
{
|
||||
$this->factory = $factory ?? new UuidFactory();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user