Skip to content

Merge pull request #40 from graphpql/dependabot/composer/infection/in… #94

Merge pull request #40 from graphpql/dependabot/composer/infection/in…

Merge pull request #40 from graphpql/dependabot/composer/infection/in… #94

Triggered via push August 25, 2025 06:42
Status Success
Total duration 57s
Artifacts

php.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
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 "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/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/RgbType.php#L22
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ protected const DESCRIPTION = 'Rgb type - type representing the RGB color model.'; public function __construct(protected ConstraintDirectiveAccessor $constraintDirectiveAccessor) { - parent::__construct(); + } public function validateNonNullValue(mixed $rawValue): bool {
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/HslType.php#L22
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ protected const DESCRIPTION = 'Hsl type - type representing the HSL color model.'; public function __construct(protected ConstraintDirectiveAccessor $constraintDirectiveAccessor) { - parent::__construct(); + } public function validateNonNullValue(mixed $rawValue): bool {
mutation: src/GpsType.php#L22
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ protected const DESCRIPTION = 'Gps type - latitude and longitude.'; public function __construct(private ConstraintDirectiveAccessor $constraintDirectiveAccessor) { - parent::__construct(); + } public function validateNonNullValue(mixed $rawValue): bool {
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); } }