Skip to content

Fix summary in debug collector #4131

Fix summary in debug collector

Fix summary in debug collector #4131

Triggered via pull request June 2, 2023 07:45
Status Failure
Total duration 4m 23s
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#L82
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation": --- Original +++ New @@ @@ */ public function __construct(private string $pattern = '/^[a-zA-Z0-9!#$%&\'*+\\/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&\'*+\\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$/', private string $fullPattern = '/^[^@]*<[a-zA-Z0-9!#$%&\'*+\\/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&\'*+\\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?>$/', private string $idnEmailPattern = '/^([a-zA-Z0-9._%+-]+)@((\\[\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.)|(([\\w-]+\\.)+))([a-zA-Z]{2,4}|\\d{1,3})(\\]?)$/', private bool $allowName = false, private bool $checkDns = false, private bool $enableIdn = false, private string $incorrectInputMessage = 'The value must be a string.', private string $message = 'This value is not a valid email address.', private mixed $skipOnEmpty = null, private bool $skipOnError = false, private Closure|null $when = null) { - 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#L81
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation": --- Original +++ New @@ @@ */ public function __construct(private string $pattern = '/^{schemes}:\\/\\/(([a-zA-Z0-9][a-zA-Z0-9_-]*)(\\.[a-zA-Z0-9][a-zA-Z0-9_-]*)+)(?::\\d{1,5})?([?\\/#].*$|$)/', private array $validSchemes = ['http', 'https'], private bool $enableIdn = false, private string $incorrectInputMessage = 'The value must be a string.', private string $message = 'This value is not a valid URL.', private mixed $skipOnEmpty = null, private bool $skipOnError = false, private Closure|null $when = null) { - 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.');