Skip to content

Bug: BaseCommand $params Type #5926

@MGatner

Description

@MGatner

PHP Version

7.4

CodeIgniter4 Version

develop

CodeIgniter4 Installation Method

Git

Which operating systems have you tested for this bug?

Linux

Which server did you use?

cli

Database

No response

What happened?

I believe that the typing on BaseCommand::run() was supposed to be @param array<int, string> $params (a "list" of strings), not @param array<string, mixed> $params (string keys, mixed values).

/**
* Actually execute a command.
*
* @param array<string, mixed> $params
*/
abstract public function run(array $params);

I started tracing this back and it was taking too long but should be quick follow-up at some point.

Steps to Reproduce

See code

Expected Output

See code

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions