Add ToDateTime
parameter attribute
#357
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
|