Skip to content

PHP 8.5 support (#785) #4693

PHP 8.5 support (#785)

PHP 8.5 support (#785) #4693

Triggered via push December 11, 2025 07:01
Status Success
Total duration 6m 54s
Artifacts

mutation.yml

on: push
Matrix: mutation / infection
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
mutation / PHP 8.5-ubuntu-latest: src/Rule/Date/BaseDateHandler.php#L82
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ $min = $this->prepareValue($rule->getMin(), $rule, $timeZone, true); if ($min !== null && $date < $min) { $result->addError($rule->getTooEarlyMessage() ?? $this->tooEarlyMessage, ['property' => $context->getTranslatedProperty(), 'Property' => $context->getCapitalizedTranslatedProperty(), 'value' => $this->formatDate($date, $rule, $timeZone), 'limit' => $this->formatDate($min, $rule, $timeZone)]); - return $result; + } $max = $this->prepareValue($rule->getMax(), $rule, $timeZone, true); if ($max !== null && $date > $max) {
mutation / PHP 8.5-ubuntu-latest: src/Rule/Date/BaseDateHandler.php#L68
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ $date = $this->prepareValue($value, $rule, $timeZone, false); if ($date === null) { $result->addError($rule->getIncorrectInputMessage() ?? $this->incorrectInputMessage, ['property' => $context->getTranslatedProperty(), 'Property' => $context->getCapitalizedTranslatedProperty()]); - return $result; + } $min = $this->prepareValue($rule->getMin(), $rule, $timeZone, true); if ($min !== null && $date < $min) {
mutation / PHP 8.5-ubuntu-latest: src/Helper/ObjectParser.php#L491
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ ): void { if (!$this->useCache()) { - return; + } /** @psalm-suppress PossiblyNullArrayOffset, MixedAssignment */ self::$cache[$this->cacheKey][$name] = $value;
mutation / PHP 8.5-ubuntu-latest: src/Helper/ObjectParser.php#L454
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ ): bool { if (!$this->useCache()) { - return false; + } if (!array_key_exists($this->cacheKey, self::$cache)) { return false;
mutation / PHP 8.5-ubuntu-latest: src/Helper/ObjectParser.php#L384
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ private function getReflectionSource(): ReflectionObject|ReflectionClass { if ($this->hasCacheItem('reflectionSource')) { - /** @var ReflectionClass|ReflectionObject */ - return $this->getCacheItem('reflectionSource'); + } $reflectionSource = is_object($this->source) ? new ReflectionObject($this->source) : new ReflectionClass($this->source); $this->setCacheItem('reflectionSource', $reflectionSource);
mutation / PHP 8.5-ubuntu-latest: src/Helper/ObjectParser.php#L323
Escaped Mutant for Mutator "Continue_": @@ @@ $data = []; foreach ($this->getReflectionProperties() as $name => $property) { if (!$property->isInitialized($this->source)) { - continue; + break; } /** @var mixed */ $data[$name] = $property->getValue($this->source);
mutation / PHP 8.5-ubuntu-latest: src/Debug/ValidatorCollector.php#L49
Escaped Mutant for Mutator "CastBool": @@ @@ return []; } $count = count($this->validations); - $countValid = count(array_filter($this->validations, fn(array $data): bool => (bool) $data['result'])); + $countValid = count(array_filter($this->validations, fn(array $data): bool => $data['result'])); $countInvalid = $count - $countValid; return ['total' => $count, 'valid' => $countValid, 'invalid' => $countInvalid]; }
mutation / PHP 8.5-ubuntu-latest: src/Debug/ValidatorCollector.php#L29
Escaped Mutant for Mutator "InstanceOf_": @@ @@ if (!$this->isActive()) { return; } - if ($rules instanceof Traversable) { + if (!$rules instanceof Traversable) { $rules = iterator_to_array($rules); } $this->validations[] = ['value' => $value, 'rules' => $rules, 'result' => $result->isValid(), 'errors' => $result->getErrors()];
mutation / PHP 8.5-ubuntu-latest: src/DataSet/ObjectDataSet.php#L240
Escaped Mutant for Mutator "Ternary": @@ @@ return $rules; } // Merge rules from `RulesProviderInterface` implementation and parsed from PHP attributes. - $rules = $rules instanceof Traversable ? iterator_to_array($rules) : $rules; + $rules = $rules instanceof Traversable ? $rules : iterator_to_array($rules); foreach ($this->parser->getRules() as $key => $value) { if (is_int($key)) { array_unshift($rules, $value);
mutation / PHP 8.5-ubuntu-latest: src/DataSet/ObjectDataSet.php#L240
Escaped Mutant for Mutator "InstanceOf_": @@ @@ return $rules; } // Merge rules from `RulesProviderInterface` implementation and parsed from PHP attributes. - $rules = $rules instanceof Traversable ? iterator_to_array($rules) : $rules; + $rules = !$rules instanceof Traversable ? iterator_to_array($rules) : $rules; foreach ($this->parser->getRules() as $key => $value) { if (is_int($key)) { array_unshift($rules, $value);