Skip to content

Fix translations, broken link, and incorrect imports in docs #4711

Fix translations, broken link, and incorrect imports in docs

Fix translations, broken link, and incorrect imports in docs #4711

Triggered via pull request March 24, 2026 11:57
Status Success
Total duration 7m 5s
Artifacts

mutation.yml

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

Annotations

11 warnings
mutation / PHP 8.5-ubuntu-latest
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
mutation / PHP 8.5-ubuntu-latest: src/Rule/Date/BaseDateHandler.php#L84
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#L70
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#L492
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#L455
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#L385
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#L324
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#L51
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#L31
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);