aspirecloud/app/Console/Commands/Command.php

19 lines
486 B
PHP

<?php
declare(strict_types=1);
namespace App\Console\Commands;
/** Adds better type support to Laravel's built-in Command class */
abstract class Command extends \Illuminate\Console\Command
{
/**
* Get the value of a command argument.
*
* @param string|null $key
* @return ($key is null ? array<array-key, mixed> : string|bool|null)
*/
public function argument($key = null): array|string|bool|null
{
return parent::argument($key);
}
}