Skip to content

Commit 955bfd1

Browse files
committed
fix(commands): Add #[\Override] attribute to schedule method
- Add #[\Override] attribute to the `schedule` method in `InspireCommand.php` - Add #[\Override] attribute to the `schedule` method in `ThanksCommand.php` - Add #[\Override] attribute to the `isEnabled` method in `VendorPublishCommand.php`
1 parent 4248e01 commit 955bfd1

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

app/Commands/InspireCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public function handle(): int
4848
*
4949
* @noinspection PhpMissingParentCallCommonInspection
5050
*/
51+
#[\Override]
5152
public function schedule(Schedule $schedule): void
5253
{
5354
// $schedule->command(static::class)->everyMinute();

app/Commands/ThanksCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public function handle(): int
6363
*
6464
* @noinspection PhpMissingParentCallCommonInspection
6565
*/
66+
#[\Override]
6667
public function schedule(Schedule $schedule): void
6768
{
6869
// $schedule->command(static::class)->everyMinute();

app/Commands/VendorPublishCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ final class VendorPublishCommand extends \Illuminate\Foundation\Console\VendorPu
1919
*
2020
* @noinspection PhpMissingParentCallCommonInspection
2121
*/
22+
#[\Override]
2223
public function isEnabled(): bool
2324
{
2425
return ! $this->laravel->isProduction();

0 commit comments

Comments
 (0)