Binding diagnostics as a core artifact#336
Open
koriym wants to merge 2 commits into
Open
Annotations
11 warnings
|
Complete job
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v4, actions/checkout@v4, actions/upload-artifact@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Run Infection:
src/di/Arguments.php#L75
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
throw new NoHint($this->getNoHintMsg($argument), 0, $unbound);
}
- throw new Unbound($argument->getMeta(), 0, $unbound);
+ throw new Unbound($argument->getMeta(), 1, $unbound);
} finally {
if (! $isInjectionPointItself) {
$container->restoreInjectionPoint($previousInjectionPoint);
|
|
Run Infection:
src/di/Arguments.php#L75
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
throw new NoHint($this->getNoHintMsg($argument), 0, $unbound);
}
- throw new Unbound($argument->getMeta(), 0, $unbound);
+ throw new Unbound($argument->getMeta(), -1, $unbound);
} finally {
if (! $isInjectionPointItself) {
$container->restoreInjectionPoint($previousInjectionPoint);
|
|
Run Infection:
src/di/Arguments.php#L72
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
}
if ($unbound instanceof NoHint) {
- throw new NoHint($this->getNoHintMsg($argument), 0, $unbound);
+ throw new NoHint($this->getNoHintMsg($argument), 1, $unbound);
}
throw new Unbound($argument->getMeta(), 0, $unbound);
|
|
Run Infection:
src/di/Arguments.php#L72
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
}
if ($unbound instanceof NoHint) {
- throw new NoHint($this->getNoHintMsg($argument), 0, $unbound);
+ throw new NoHint($this->getNoHintMsg($argument), -1, $unbound);
}
throw new Unbound($argument->getMeta(), 0, $unbound);
|
|
Run Infection:
src/di/Arguments.php#L60
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
*/
private function getParameter(Container $container, Argument $argument)
{
- $isInjectionPointItself = (string) $argument === InjectionPointInterface::class . '-' . Name::ANY;
+ $isInjectionPointItself = (string) $argument === InjectionPointInterface::class . '-';
$previousInjectionPoint = $isInjectionPointItself
? null
: $container->setInjectionPoint(new InjectionPoint($argument->get()));
|
|
Run Infection:
src/di/Arguments.php#L60
Escaped Mutant for Mutator "Concat":
@@ @@
*/
private function getParameter(Container $container, Argument $argument)
{
- $isInjectionPointItself = (string) $argument === InjectionPointInterface::class . '-' . Name::ANY;
+ $isInjectionPointItself = (string) $argument === InjectionPointInterface::class . Name::ANY . '-';
$previousInjectionPoint = $isInjectionPointItself
? null
: $container->setInjectionPoint(new InjectionPoint($argument->get()));
|
|
Run Infection:
src/di/Argument.php#L134
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
private function setDefaultValue(ReflectionParameter $parameter): void
{
if (! $this->isDefaultAvailable) {
- return;
+
}
try {
|
|
Run Infection:
src/di/Argument.php#L36
Escaped Mutant for Mutator "IfNegation":
@@ @@
$type = $this->getType($parameter);
$isOptional = $parameter->isOptional();
$this->isDefaultAvailable = $parameter->isDefaultValueAvailable() || $isOptional;
- if ($isOptional) {
+ if (!$isOptional) {
$this->default = null;
}
|
|
Run Infection:
src/di/AbstractModule.php#L147
Escaped Mutant for Mutator "PublicVisibility":
@@ @@
* @throws Exception\Unbound When the wrapped module has no binding at $interface-$sourceName.
* @throws Exception\RenameTargetAlreadyBound When a binding already exists at the target index.
*/
- public function rename(string $interface, string $newName, string $sourceName = Name::ANY, string $targetInterface = ''): void
+ protected function rename(string $interface, string $newName, string $sourceName = Name::ANY, string $targetInterface = ''): void
{
$targetInterface = $targetInterface ?: $interface;
if ($this->lastModule instanceof self) {
|
|
Run Infection:
src/di/AbstractModule.php#L109
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
assert(interface_exists($interceptor));
- (new Bind($this->getContainer(), $interceptor, static::class))->in(Scope::SINGLETON);
+
}
}
|
background
wait
wait-all
cancel
parallel
Loading