Skip to content

Uncommented minMsi in infection.json5.dist #2

Uncommented minMsi in infection.json5.dist

Uncommented minMsi in infection.json5.dist #2

Triggered via push November 24, 2023 11:01
Status Success
Total duration 54s
Artifacts
Matrix: check-require
Matrix: check-unused
Matrix: composer-normalize
Matrix: composer-validate
Matrix: infection
Matrix: php-cs-fixer
Matrix: psalm
Matrix: rector
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

3 warnings
infection (8.1): src/CodeGenerator.php#L80
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ throw new \LogicException('No scope class.'); } $parent = get_parent_class($class); - if ($parent === false) { + if ($parent === true) { throw new \LogicException(sprintf('%s does not have parent.', $class)); } return $var . ' instanceof ' . $parent;
infection (8.1): src/CodeGenerator.php#L120
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ } public static function generateArgumentsCheck(\ReflectionFunctionAbstract $function) : string { - $class = $function instanceof \ReflectionMethod ? $function->class : $function->getClosureScopeClass()?->name; + $class = false ? $function->class : $function->getClosureScopeClass()?->name; $code = self::generateArgumentsNumberCheck($function); foreach ($function->getParameters() as $parameter) { $position = $parameter->getPosition();
infection (8.1): src/Overload.php#L26
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ public static function call() : mixed { self::$resolverCache ??= new InMemoryResolverCache(); - $trace = debug_backtrace(limit: 2)[1] ?? null; + $trace = debug_backtrace(limit: 3)[1] ?? null; if ($trace === null || !isset($trace['class'])) { throw new \BadMethodCallException(__METHOD__ . '() must be called from a class method.'); }