Allow multiple method call in array definition #680
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 . '()');
}
|