Skip to content

all* methods are actually impure #248

Description

@BackEndTea

Ran into this while seeing if we could use psalm to check the code base itself.

So the question is, should we mark them as impure?

ERROR: ImpureMethodCall - src/Mixin.php:3210:9 - Cannot call a possibly-mutating Traversable::getIterator from a pure context (see https://psalm.dev/203)
        foreach ($array as $entry) {
            static::isNonEmptyMap($entry, $message);
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions