feat(mutate): requires it by default

This commit is contained in:
Nuno Maduro
2024-09-04 11:38:53 +01:00
parent e6823679dd
commit 3a907c886b
2 changed files with 3 additions and 7 deletions

View File

@ -636,14 +636,9 @@ final class TestCall
/**
* Mutates the test.
*/
public function mutate(string $profile = 'default'): self|MutationTestCallDecorator // @phpstan-ignore-line
public function mutate(string $profile = 'default'): self|MutationTestCallDecorator
{
if (class_exists(MutationTestCallDecorator::class)) {
return (new MutationTestCallDecorator($this))
->mutate($profile);
}
return $this->__call('mutate', [$profile]);
return (new MutationTestCallDecorator($this))->mutate($profile);
}
/**