Add enum support #4552
Annotations
1 error and 1 warning
mutation / PHP 8.3-ubuntu-latest
Process completed with exit code 1.
|
mutation / PHP 8.3-ubuntu-latest:
src/Rule/InEnumHandler.php#L29
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
}
$result = new Result();
if ($rule->isNot() === in_array($value, $rule->getValues(), $rule->isStrict())) {
- $result->addError($rule->getMessage(), ['property' => $context->getTranslatedProperty(), 'Property' => $context->getCapitalizedTranslatedProperty()]);
+ $result->addError($rule->getMessage(), ['Property' => $context->getCapitalizedTranslatedProperty()]);
}
return $result;
}
}
|