Skip to content

Dev: replace type mixed with more specific types #6310

Open
@kenjis

Description

@kenjis

Type mixed means object|resource|array|string|int|float|bool|null.
https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.mixed

The current code base has a lot of type mixed in PHPDocs,
But I think all of them are not correct.

And mixed prevents PHPStan level from increasing.

PHPStan’s rule level 6 isn’t satisfied with implicit mixed
https://phpstan.org/writing-php-code/phpdoc-types#mixed

We need to replace type mixed with more specific types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    devgood first issueGood for newcomershelp wantedMore help is needed for the proper resolution of an issue or pull request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions