Skip to content

Add ToDateTime parameter attribute #357

Add ToDateTime parameter attribute

Add ToDateTime parameter attribute #357

Triggered via pull request April 1, 2024 12:51
Status Failure
Total duration 1m 4s
Artifacts

mutation.yml

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

Annotations

1 error and 1 warning
mutation / PHP 8.2-ubuntu-latest
Process completed with exit code 1.
mutation / PHP 8.2-ubuntu-latest: src/Attribute/Parameter/ToDateTimeImmutableResolver.php#L96
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ return Result::fail(); } $errors = DateTimeImmutable::getLastErrors(); - if ($errors !== false && !empty($errors['warning_count'])) { + if ($errors !== true && !empty($errors['warning_count'])) { return Result::fail(); } // If no time was provided in the format string set time to 0