Skip to content

Disallow $min greater than amount of $attributes in AtLeast configuration #4183

Disallow $min greater than amount of $attributes in AtLeast configuration

Disallow $min greater than amount of $attributes in AtLeast configuration #4183

Triggered via pull request August 22, 2023 14:20
Status Failure
Total duration 6m 39s
Artifacts

mutation.yml

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

Annotations

1 error and 3 warnings
mutation / PHP 8.1-ubuntu-latest
Process completed with exit code 1.
mutation / PHP 8.1-ubuntu-latest: 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.');
mutation / PHP 8.1-ubuntu-latest: 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; } }
mutation / PHP 8.1-ubuntu-latest: 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.');