Skip to content

Invalid mutator config #1479

@theofidry

Description

@theofidry

At first glance:

{
    "mutators": {
        "MBString": {
            "settings": {
                "mb_strcut": false
            }
        }
    }
}

results in an error although I believe it's the correct way to configure it or at least it's the one suggested from the schema...

Error (in PHP 7.4, infection 0.21.0):

PHP Fatal error:  Uncaught TypeError: Return value of Infection\Mutator\MutatorResolver::Infection\Mutator\{closure}() must be of the type array, object returned in /path/to/vendor/infection/infection/src/Mutator/MutatorResolver.php:142
Stack trace:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions