up php #4243
Annotations
1 error and 3 warnings
Run roave infection.
Process completed with exit code 1.
|
Run roave infection.:
src/Rule/Email.php#L119
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
--- Original
+++ New
@@ @@
throw new InvalidArgumentException('IDN e-mail pattern can\'t be empty.');
}
$this->idnEmailPattern = $idnEmailPattern;
- if ($enableIdn && !function_exists('idn_to_ascii')) {
+ if (!$enableIdn && !function_exists('idn_to_ascii')) {
// Tested via separate CI configuration (see ".github/workflows/build.yml").
// @codeCoverageIgnoreStart
throw new RuntimeException('In order to use IDN validation intl extension must be installed and enabled.');
|
Run roave infection.:
src/Rule/RegexHandler.php#L37
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation":
--- Original
+++ New
@@ @@
if (!is_string($value)) {
return $result->addError($rule->getIncorrectInputMessage(), ['attribute' => $context->getTranslatedAttribute(), 'type' => get_debug_type($value)]);
}
- if (!$rule->isNot() && !preg_match($rule->getPattern(), $value) || $rule->isNot() && preg_match($rule->getPattern(), $value)) {
+ if (!$rule->isNot() && !preg_match($rule->getPattern(), $value) || !$rule->isNot() && !preg_match($rule->getPattern(), $value)) {
$result->addError($rule->getMessage(), ['attribute' => $context->getTranslatedAttribute(), 'value' => $value]);
}
return $result;
}
}
|
Run roave infection.:
src/Rule/Url.php#L98
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
--- Original
+++ New
@@ @@
* @psalm-var non-empty-string $pattern
*/
$this->pattern = $pattern;
- if ($enableIdn && !function_exists('idn_to_ascii')) {
+ if (!$enableIdn && !function_exists('idn_to_ascii')) {
// Tested via separate CI configuration (see ".github/workflows/build.yml").
// @codeCoverageIgnoreStart
throw new RuntimeException('In order to use IDN validation intl extension must be installed and enabled.');
|
The logs for this run have expired and are no longer available.
Loading