Skip to content

Commit 22ddfff

Browse files
committed
fix property types related to CakePHP 5.4 changes
1 parent 5a796ac commit 22ddfff

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Command/BakeSeedCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class BakeSeedCommand extends SimpleBakeCommand
4040
/**
4141
* Arguments
4242
*/
43-
protected ?Arguments $args = null;
43+
protected Arguments $args;
4444

4545
/**
4646
* @inheritDoc
@@ -84,7 +84,7 @@ public function getPath(Arguments $args): string
8484
*/
8585
public function template(): string
8686
{
87-
$style = $this->args?->getOption('style') ?? Configure::read('Migrations.style', 'traditional');
87+
$style = $this->args->getOption('style') ?? Configure::read('Migrations.style', 'traditional');
8888
if ($style === 'anonymous') {
8989
return 'Migrations.Seed/seed-anonymous';
9090
}

src/Command/BakeSimpleMigrationCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ abstract class BakeSimpleMigrationCommand extends SimpleBakeCommand
5050
/**
5151
* Console IO
5252
*/
53-
protected ?ConsoleIo $io = null;
53+
protected ConsoleIo $io;
5454

5555
/**
5656
* Arguments
5757
*/
58-
protected ?Arguments $args = null;
58+
protected Arguments $args;
5959

6060
/**
6161
* @inheritDoc

0 commit comments

Comments
 (0)