Skip to content

Bump phpstan/phpstan from 2.1.18 to 2.1.20 #84

Bump phpstan/phpstan from 2.1.18 to 2.1.20

Bump phpstan/phpstan from 2.1.18 to 2.1.20 #84

Triggered via pull request July 28, 2025 02:37
Status Failure
Total duration 56s
Artifacts

php.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 error and 9 warnings
mutation
Process completed with exit code 1.
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 "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/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); } }