Skip to content

Bump infection/infection from 0.31.9 to 0.32.2 #135

Bump infection/infection from 0.31.9 to 0.32.2

Bump infection/infection from 0.31.9 to 0.32.2 #135

Triggered via pull request January 12, 2026 08:49
Status Failure
Total duration 1m 8s
Artifacts

php.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 10 warnings
phpstan
Process completed with exit code 1.
phpstan: src/TextVisitor.php#L289
Function preg_replace is unsafe to use. It can return FALSE instead of throwing an exception. Please add 'use function Safe\preg_replace;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library.
phpstan: src/TextVisitor.php#L116
Method Graphpinator\Printer\TextVisitor::visitScalar() has parameter $scalar with generic class Graphpinator\Typesystem\ScalarType but does not specify its types: T
phpstan: src/HtmlVisitor.php#L421
Function preg_replace is unsafe to use. It can return FALSE instead of throwing an exception. Please add 'use function Safe\preg_replace;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library.
phpstan: src/HtmlVisitor.php#L420
Function preg_replace is unsafe to use. It can return FALSE instead of throwing an exception. Please add 'use function Safe\preg_replace;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library.
phpstan: src/HtmlVisitor.php#L417
Function preg_match_all is unsafe to use. It can return FALSE instead of throwing an exception. Please add 'use function Safe\preg_match_all;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library.
phpstan: src/HtmlVisitor.php#L341
Function preg_replace is unsafe to use. It can return FALSE instead of throwing an exception. Please add 'use function Safe\preg_replace;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library.
phpstan: src/HtmlVisitor.php#L339
Function preg_replace is unsafe to use. It can return FALSE instead of throwing an exception. Please add 'use function Safe\preg_replace;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library.
phpstan: src/HtmlVisitor.php#L188
Method Graphpinator\Printer\HtmlVisitor::visitScalar() has parameter $scalar with generic class Graphpinator\Typesystem\ScalarType but does not specify its types: T
mutation: src/HtmlVisitor.php#L492
Escaped Mutant for Mutator "MatchArmRemoval": @@ @@ { $className = match ($value::class) { NullValue::class => 'null', - EnumValue::class => 'enum-literal', ScalarValue::class => match (\get_debug_type($value->getRawValue())) { 'bool' => $value->getRawValue() === true ? 'true' : 'false', 'int' => 'int-literal',
mutation: src/HtmlVisitor.php#L472
Escaped Mutant for Mutator "FalseValue": @@ @@ ) : string { $result = ''; - $previousHasDescription = false; + $previousHasDescription = true; $isFirst = true; foreach ($set as $item) {
mutation: src/HtmlVisitor.php#L461
Escaped Mutant for Mutator "Assignment": @@ @@ $return = ''; foreach ($set as $directiveUsage) { - $return .= $directiveUsage->accept($this); + $return = $directiveUsage->accept($this); } return $return;
mutation: src/HtmlVisitor.php#L423
Escaped Mutant for Mutator "Assignment": @@ @@ $match = \preg_replace('/(?<=>).*?(?=<)/', self::LINK_TEXTS[$index], $match); $match = \preg_replace('/(?<=title=").*?(?=")/', self::LINK_TITLES[$index], $match); $match = \str_replace('class="typename"', 'class="floating-button"', $match); - $result .= $match; + $result = $match; } return <<<EOL
mutation: src/HtmlVisitor.php#L419
Escaped Mutant for Mutator "IncrementInteger": @@ @@ $matches = []; \preg_match_all('/(<a .+?<\/a>)/', $schemaString, $matches); - foreach ($matches[0] as $index => $match) { + foreach ($matches[1] as $index => $match) { $match = \preg_replace('/(?<=>).*?(?=<)/', self::LINK_TEXTS[$index], $match); $match = \preg_replace('/(?<=title=").*?(?=")/', self::LINK_TITLES[$index], $match); $match = \str_replace('class="typename"', 'class="floating-button"', $match);
mutation: src/HtmlVisitor.php#L376
Escaped Mutant for Mutator "MatchArmRemoval": @@ @@ self::printTypeLink($type->getInnerType()) . '<span class="bracket-square">]</span>', $type instanceof NamedType => self::printNamedTypeLink($type), - default => throw new \InvalidArgumentException('Unknown type.'), }; }
mutation: src/HtmlVisitor.php#L344
Escaped Mutant for Mutator "UnwrapStrReplace": @@ @@ $html = \preg_replace('/>((\s+(&nbsp;){1}\s*)|(\s*(&nbsp;){1}\s+))</', '>&nbsp;<', $html); // Replace empty line div with empty line containing &nbsp; (empty divs are ignored by browsers) - return \str_replace('<div class="line"></div>', self::emptyLine(), $html); + return $html; } private static function generateRootTypeLink(Type $type, string $rootType) : string
mutation: src/HtmlVisitor.php#L304
Escaped Mutant for Mutator "Continue_": @@ @@ foreach ($directiveUsage->getArgumentValues() as $argument) { // do not print default value if ($argument->value->getRawValue() === $argument->argument->getDefaultValue()?->value->getRawValue()) { - continue; + break; } $printableArgument = '<span class="argument-name">' . $argument->argument->getName() . '</span>';
mutation: src/HtmlVisitor.php#L279
Escaped Mutant for Mutator "Assignment": @@ @@ $link = '<span class="argument-type">' . self::printTypeLink($argument->getType()) . '</span>'; if ($argument->getDefaultValue() instanceof ArgumentValue) { - $defaultValue .= '&nbsp;<span class="equals">=</span>&nbsp;'; + $defaultValue = '&nbsp;<span class="equals">=</span>&nbsp;'; $defaultValue .= '<span class="argument-value">' . $this->printValue($argument->getDefaultValue()->value) . '</span>'; }
mutation: src/HtmlVisitor.php#L51
Escaped Mutant for Mutator "Coalesce": @@ @@ ?FieldCollector $fieldCollector = null, ) { - $this->fieldCollector = $fieldCollector - ?? new AllFieldCollector(); + $this->fieldCollector = new AllFieldCollector() ?? $fieldCollector; } #[\Override]