Bump phpstan/phpstan from 2.1.18 to 2.1.20 #84
php.yml
on: pull_request
tests
18s
phpstan
17s
codestyle
19s
mutation
30s
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);
}
}
|