Skip to content

Apply fixes from StyleCI #4269

Apply fixes from StyleCI

Apply fixes from StyleCI #4269

Triggered via push January 26, 2024 11:25
Status Failure
Total duration 3m 27s
Artifacts

mutation.yml

on: push
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/DateTimeHandler.php#L36
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ } \DateTime::createFromFormat($rule->getFormat(), (string) $value); // Before PHP 8.2 may return array instead of false (see https://github.com/php/php-src/issues/9431). - $errors = \DateTime::getLastErrors() ?: ['error_count' => 0, 'warning_count' => 0]; + $errors = \DateTime::getLastErrors() ?: ['error_count' => -1, 'warning_count' => 0]; if ($errors['error_count'] !== 0 || $errors['warning_count'] !== 0) { $result->addError($rule->getMessage(), ['attribute' => $context->getTranslatedAttribute(), 'value' => $value]); }
mutation / PHP 8.1-ubuntu-latest: src/Rule/DateTimeHandler.php#L36
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ } \DateTime::createFromFormat($rule->getFormat(), (string) $value); // Before PHP 8.2 may return array instead of false (see https://github.com/php/php-src/issues/9431). - $errors = \DateTime::getLastErrors() ?: ['error_count' => 0, 'warning_count' => 0]; + $errors = \DateTime::getLastErrors() ?: ['error_count' => 1, 'warning_count' => 0]; if ($errors['error_count'] !== 0 || $errors['warning_count'] !== 0) { $result->addError($rule->getMessage(), ['attribute' => $context->getTranslatedAttribute(), 'value' => $value]); }
mutation / PHP 8.1-ubuntu-latest: src/Rule/DateTimeHandler.php#L36
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ } \DateTime::createFromFormat($rule->getFormat(), (string) $value); // Before PHP 8.2 may return array instead of false (see https://github.com/php/php-src/issues/9431). - $errors = \DateTime::getLastErrors() ?: ['error_count' => 0, 'warning_count' => 0]; + $errors = \DateTime::getLastErrors() ?: ['error_count' => 0, 'warning_count' => -1]; if ($errors['error_count'] !== 0 || $errors['warning_count'] !== 0) { $result->addError($rule->getMessage(), ['attribute' => $context->getTranslatedAttribute(), 'value' => $value]); }
mutation / PHP 8.1-ubuntu-latest: src/Rule/DateTimeHandler.php#L36
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ } \DateTime::createFromFormat($rule->getFormat(), (string) $value); // Before PHP 8.2 may return array instead of false (see https://github.com/php/php-src/issues/9431). - $errors = \DateTime::getLastErrors() ?: ['error_count' => 0, 'warning_count' => 0]; + $errors = \DateTime::getLastErrors() ?: ['error_count' => 0, 'warning_count' => 1]; if ($errors['error_count'] !== 0 || $errors['warning_count'] !== 0) { $result->addError($rule->getMessage(), ['attribute' => $context->getTranslatedAttribute(), 'value' => $value]); }