Skip to content

Allow multiple method call in array definition #680

Allow multiple method call in array definition

Allow multiple method call in array definition #680

Triggered via pull request March 10, 2024 15:30
@vjikvjik
synchronize #90
multicall
Status Failure
Total duration 1m 9s
Artifacts

mutation.yml

on: pull_request
Matrix: mutation / roave-infection
Fit to window
Zoom out
Zoom in

Annotations

1 error and 2 warnings
mutation / PHP 8.3-ubuntu-latest
Process completed with exit code 1.
mutation / PHP 8.3-ubuntu-latest: src/Helpers/DefinitionValidator.php#L146
Escaped Mutant for Mutator "UnwrapTrim": --- Original +++ New @@ @@ } private static function generatePossibleMessage(string $key, array $classPublicMethods, array $classPublicProperties, ReflectionClass $classReflection, string $className) : string { - $parsedKey = trim(strtr($key, ['()' => '', '$' => ''])); + $parsedKey = strtr($key, ['()' => '', '$' => '']); if (in_array($parsedKey, $classPublicMethods, true)) { return sprintf('Did you mean "%s"?', $parsedKey . '()'); }
mutation / PHP 8.3-ubuntu-latest: src/Helpers/DefinitionValidator.php#L147
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ } private static function generatePossibleMessage(string $key, array $classPublicMethods, array $classPublicProperties, ReflectionClass $classReflection, string $className) : string { - $parsedKey = trim(strtr($key, ['()' => '', '$' => ''])); + $parsedKey = trim(strtr($key, ['$' => ''])); if (in_array($parsedKey, $classPublicMethods, true)) { return sprintf('Did you mean "%s"?', $parsedKey . '()'); }