Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update console stub return types and docblocks #493

Merged
merged 3 commits into from
Jan 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions src/Commands/stubs/console.stub
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
<?php

namespace DummyNamespace;
namespace {{ namespace }};

use Illuminate\Console\Scheduling\Schedule;
use LaravelZero\Framework\Commands\Command;

class DummyClass extends Command
{
/**
* The signature of the command.
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'dummy:command';
protected $signature = '{{ command }}';

/**
* The description of the command.
* The console command description.
*
* @var string
*/
protected $description = 'Command description';

/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
Expand All @@ -33,9 +31,6 @@ class DummyClass extends Command

/**
* Define the command's schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
public function schedule(Schedule $schedule): void
{
Expand Down