Skip to content

add DateRule (#602) #4241

add DateRule (#602)

add DateRule (#602) #4241

Triggered via pull request January 15, 2024 18:25
Status Failure
Total duration 2m 50s
Artifacts

mutation.yml

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

Annotations

1 error and 4 warnings
mutation / PHP 8.1-ubuntu-latest
Process completed with exit code 1.
mutation / PHP 8.1-ubuntu-latest: src/Rule/DateTime.php#L76
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ if ($this->formats) { return $this->formats; } - return [DateTimeInterface::ATOM, DateTimeInterface::COOKIE, DateTimeInterface::RFC822, DateTimeInterface::RFC850, DateTimeInterface::RFC1036, DateTimeInterface::RFC1123, DateTimeInterface::RFC7231, DateTimeInterface::RFC2822, DateTimeInterface::RFC3339, DateTimeInterface::RFC3339_EXTENDED, DateTimeInterface::RSS, DateTimeInterface::W3C]; + return [DateTimeInterface::COOKIE, DateTimeInterface::RFC822, DateTimeInterface::RFC850, DateTimeInterface::RFC1036, DateTimeInterface::RFC1123, DateTimeInterface::RFC7231, DateTimeInterface::RFC2822, DateTimeInterface::RFC3339, DateTimeInterface::RFC3339_EXTENDED, DateTimeInterface::RSS, DateTimeInterface::W3C]; } public function getLessThanMinMessage() : string {
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.');