Skip to content

Commit d7f76d6

Browse files
committed
Fix cake commands should have a name native type hint
1 parent 4353c8a commit d7f76d6

4 files changed

Lines changed: 4 additions & 8 deletions

File tree

src/Shell/CleanOldNotifsShell.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ class CleanOldNotifsShell extends Command
3838
/**
3939
* The name of this command.
4040
*
41-
* @var string
4241
*/
43-
protected $name = self::NAME;
42+
protected string $name = self::NAME;
4443

4544
protected NotificationsTable $Notifications;
4645

src/Shell/ConsoleShell.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ class ConsoleShell extends Command
3838
/**
3939
* The name of this command.
4040
*
41-
* @var string
4241
*/
43-
protected $name = self::NAME;
42+
protected string $name = self::NAME;
4443

4544
public static function defaultName(): string
4645
{

src/Shell/StatsShell.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ class StatsShell extends Command
4141
/**
4242
* The name of this command.
4343
*
44-
* @var string
4544
*/
46-
protected $name = self::NAME;
45+
protected string $name = self::NAME;
4746

4847
public static function defaultName(): string
4948
{

src/Shell/SyncGithubIssueStatesShell.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ class SyncGithubIssueStatesShell extends Command
4242
/**
4343
* The name of this command.
4444
*
45-
* @var string
4645
*/
47-
protected $name = self::NAME;
46+
protected string $name = self::NAME;
4847

4948
public static function defaultName(): string
5049
{

0 commit comments

Comments
 (0)