You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: Bug report
about: Can't call run() method with params from migrate:latest
Describe the bug
<?php namespace App\Commands;
use CodeIgniter\CLI\CLI;
use CodeIgniter\CLI\BaseCommand;
class Module extends BaseCommand
{
/**
* A heading this command is grouped under
* when listed via `php spark`
*/
protected $group = 'Modules';
/**
* The Command's name
*
* @var string
*/
protected $name = 'module';
/**
* The Command's short description
*
* @var string
*/
protected $description = '';
/**
* The main entry point into the command.
* All base logic should happen here.
*/
public function run(array $params=[])
{
$name = array_shift($params);
$this->call('migrate:latest', ['-n' => 'Modules\\'.$name.'']);
}
}
I debug variable $namespace in \CodeIgniter\Commands\Database\MigrateLatest line 107 then it is null.
I think variable $params has not been used yet.
name: Bug report
about: Can't call run() method with params from migrate:latest
Describe the bug
I debug variable $namespace in \CodeIgniter\Commands\Database\MigrateLatest line 107 then it is null.
I think variable $params has not been used yet.
CodeIgniter 4 version
4.0.0 alpha.1
Affected module(s)
\CodeIgniter\Commands\Database\MigrateLatest
Context
The text was updated successfully, but these errors were encountered: