Compliance #16172
compliance.yml
on: schedule
automation
/
Generate job matrix
6s
Matrix: automation / qa
Annotations
10 warnings
automation / [PHP8.3] Infection-locked on ubuntu:
src/Container.php#L128
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
*/
public function __destruct()
{
- $this->aliases = [ContainerInterface::class => self::class];
+ $this->aliases = [];
$this->bindings = [];
$this->dependencies = [];
$this->extensions = [];
|
automation / [PHP8.3] Infection-locked on ubuntu:
src/Container.php#L261
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
if (array_key_exists($class, $this->dependencies)) {
throw new CircularDependencyException(sprintf('Class: %s -> %s', implode(' -> ', array_keys($this->dependencies)), $class));
}
- $this->dependencies[$class] = true;
+ $this->dependencies[$class] = false;
/** @var TService $instance */
$instance = $this->instantiator->instantiate($class, $arguments);
if (array_key_exists($class, $this->dependencies)) {
|
automation / [PHP8.3] Infection-locked on ubuntu:
src/Container.php#L291
Escaped Mutant for Mutator "MBString":
--- Original
+++ New
@@ @@
return $callback(...$this->parameterBuilder->build(match (true) {
is_string($callback) => match (true) {
str_contains($callback, '::') => (function (string $callback) {
- $position = mb_strpos($callback, '::');
+ $position = strpos($callback, '::');
$class = mb_substr($callback, 0, $position);
$method = mb_substr($callback, $position + 2);
return $this->reflector->reflectClass($class)->getMethod($method)->getParameters();
|
automation / [PHP8.3] Infection-locked on ubuntu:
src/Container.php#L293
Escaped Mutant for Mutator "MBString":
--- Original
+++ New
@@ @@
is_string($callback) => match (true) {
str_contains($callback, '::') => (function (string $callback) {
$position = mb_strpos($callback, '::');
- $class = mb_substr($callback, 0, $position);
+ $class = substr($callback, 0, $position);
$method = mb_substr($callback, $position + 2);
return $this->reflector->reflectClass($class)->getMethod($method)->getParameters();
})($callback),
|
automation / [PHP8.3] Infection-locked on ubuntu:
src/Container.php#L295
Escaped Mutant for Mutator "MBString":
--- Original
+++ New
@@ @@
str_contains($callback, '::') => (function (string $callback) {
$position = mb_strpos($callback, '::');
$class = mb_substr($callback, 0, $position);
- $method = mb_substr($callback, $position + 2);
+ $method = substr($callback, $position + 2);
return $this->reflector->reflectClass($class)->getMethod($method)->getParameters();
})($callback),
default => $this->reflector->reflectFunction($callback)->getParameters(),
|
automation / [PHP8.3] Infection-locked on ubuntu:
src/Container.php#L419
Escaped Mutant for Mutator "MatchArmRemoval":
--- Original
+++ New
@@ @@
static fn(bool $carry, array $binding): bool => $carry || in_array($service, $binding, true),
false
),
- array_key_exists($service, $this->instances), array_key_exists($service, $this->factories), array_key_exists($service, $this->services), array_key_exists($service, $this->aliases), is_a($service, ContainerInterface::class, true) => true,
+ array_key_exists($service, $this->instances), array_key_exists($service, $this->factories), array_key_exists($service, $this->services), array_key_exists($service, $this->aliases) => true,
};
}
/**
|
automation / [PHP8.3] Infection-locked on ubuntu:
src/Container.php#L425
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation":
--- Original
+++ New
@@ @@
/**
* @param array<class-string<TService>> $binding
*/
- static fn(bool $carry, array $binding): bool => $carry || in_array($service, $binding, true),
+ static fn(bool $carry, array $binding): bool => !$carry || !in_array($service, $binding, true),
false
),
array_key_exists($service, $this->instances), array_key_exists($service, $this->factories), array_key_exists($service, $this->services), array_key_exists($service, $this->aliases), is_a($service, ContainerInterface::class, true) => true,
|
automation / [PHP8.3] Infection-locked on ubuntu:
src/Container.php#L425
Escaped Mutant for Mutator "LogicalOrSingleSubExprNegation":
--- Original
+++ New
@@ @@
/**
* @param array<class-string<TService>> $binding
*/
- static fn(bool $carry, array $binding): bool => $carry || in_array($service, $binding, true),
+ static fn(bool $carry, array $binding): bool => !$carry || in_array($service, $binding, true),
false
),
array_key_exists($service, $this->instances), array_key_exists($service, $this->factories), array_key_exists($service, $this->services), array_key_exists($service, $this->aliases), is_a($service, ContainerInterface::class, true) => true,
|
automation / [PHP8.3] Infection-locked on ubuntu:
src/Container.php#L474
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
if (array_key_exists($serviceProvider, $this->providers)) {
throw new ServiceProviderAlreadyRegisteredException($serviceProvider);
}
- $this->providers[$serviceProvider] = true;
+ $this->providers[$serviceProvider] = false;
$this->invoke($serviceProvider);
}
public function register(string $abstract, string $concrete = null, array $tags = []): void
|
automation / [PHP8.3] Infection-locked on ubuntu:
src/Container.php#L491
Escaped Mutant for Mutator "NotIdentical":
--- Original
+++ New
@@ @@
if (trim($concrete) === '') {
throw new ServiceNameMustBeNonEmptyStringException();
}
- if ($tags !== []) {
+ if ($tags === []) {
$this->tag($abstract, $tags);
}
$this->services[$concrete] ??= $concrete;
|