Skip to content

Bump infection/infection from 0.30.3 to 0.31.2 #93

Bump infection/infection from 0.30.3 to 0.31.2

Bump infection/infection from 0.30.3 to 0.31.2 #93

Triggered via pull request August 25, 2025 03:03
Status Success
Total duration 46s
Artifacts

php.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 warnings
mutation: src/UrlType.php#L24
Escaped Mutant for Mutator "CastBool": @@ @@ } public function validateNonNullValue(mixed $rawValue): bool { - return \is_string($rawValue) && (bool) \filter_var($rawValue, \FILTER_VALIDATE_URL); + return \is_string($rawValue) && \filter_var($rawValue, \FILTER_VALIDATE_URL); } }
mutation: src/Trait/TDateTimeValidate.php#L15
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation": @@ @@ { $dateTime = \DateTimeImmutable::createFromFormat($format, $value); $errors = \DateTimeImmutable::getLastErrors(); - return $dateTime instanceof \DateTimeImmutable && ($errors === false || $errors['error_count'] === 0 && $errors['warning_count'] === 0); + return $dateTime instanceof \DateTimeImmutable && ($errors === false || !($errors['error_count'] === 0) && !($errors['warning_count'] === 0)); } }
mutation: src/Trait/TDateTimeValidate.php#L15
Escaped Mutant for Mutator "DecrementInteger": @@ @@ { $dateTime = \DateTimeImmutable::createFromFormat($format, $value); $errors = \DateTimeImmutable::getLastErrors(); - return $dateTime instanceof \DateTimeImmutable && ($errors === false || $errors['error_count'] === 0 && $errors['warning_count'] === 0); + return $dateTime instanceof \DateTimeImmutable && ($errors === false || $errors['error_count'] === 0 && $errors['warning_count'] === -1); } }
mutation: src/Trait/TDateTimeValidate.php#L15
Escaped Mutant for Mutator "DecrementInteger": @@ @@ { $dateTime = \DateTimeImmutable::createFromFormat($format, $value); $errors = \DateTimeImmutable::getLastErrors(); - return $dateTime instanceof \DateTimeImmutable && ($errors === false || $errors['error_count'] === 0 && $errors['warning_count'] === 0); + return $dateTime instanceof \DateTimeImmutable && ($errors === false || $errors['error_count'] === -1 && $errors['warning_count'] === 0); } }
mutation: src/Trait/TDateTimeValidate.php#L15
Escaped Mutant for Mutator "Identical": @@ @@ { $dateTime = \DateTimeImmutable::createFromFormat($format, $value); $errors = \DateTimeImmutable::getLastErrors(); - return $dateTime instanceof \DateTimeImmutable && ($errors === false || $errors['error_count'] === 0 && $errors['warning_count'] === 0); + return $dateTime instanceof \DateTimeImmutable && ($errors === false || $errors['error_count'] !== 0 && $errors['warning_count'] === 0); } }
mutation: src/MacType.php#L17
Escaped Mutant for Mutator "CastBool": @@ @@ protected const DESCRIPTION = 'Mac type - string which contains valid MAC (media access control) address.'; public function validateNonNullValue(mixed $rawValue): bool { - return \is_string($rawValue) && (bool) \filter_var($rawValue, \FILTER_VALIDATE_MAC); + return \is_string($rawValue) && \filter_var($rawValue, \FILTER_VALIDATE_MAC); } }
mutation: src/IPv6Type.php#L24
Escaped Mutant for Mutator "CastBool": @@ @@ } public function validateNonNullValue(mixed $rawValue): bool { - return \is_string($rawValue) && (bool) \filter_var($rawValue, \FILTER_VALIDATE_IP, \FILTER_FLAG_IPV6); + return \is_string($rawValue) && \filter_var($rawValue, \FILTER_VALIDATE_IP, \FILTER_FLAG_IPV6); } }
mutation: src/IPv4Type.php#L24
Escaped Mutant for Mutator "CastBool": @@ @@ } public function validateNonNullValue(mixed $rawValue): bool { - return \is_string($rawValue) && (bool) \filter_var($rawValue, \FILTER_VALIDATE_IP, \FILTER_FLAG_IPV4); + return \is_string($rawValue) && \filter_var($rawValue, \FILTER_VALIDATE_IP, \FILTER_FLAG_IPV4); } }
mutation: src/EmailAddressType.php#L24
Escaped Mutant for Mutator "CastBool": @@ @@ } public function validateNonNullValue(mixed $rawValue): bool { - return \is_string($rawValue) && (bool) \filter_var($rawValue, \FILTER_VALIDATE_EMAIL); + return \is_string($rawValue) && \filter_var($rawValue, \FILTER_VALIDATE_EMAIL); } }