CI #264
Annotations
10 warnings
Infection PHP:
src/Boot/BaseConfigurator.php#L119
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
if (!Dependencies::isPackageLoaded('tracy/tracy')) {
throw PackageRequired::forMethod(['tracy/tracy'], static::class, __FUNCTION__);
}
- @mkdir($this->staticParameters['logDir'], 0777, true);
+ @mkdir($this->staticParameters['logDir'], 510, true);
Debugger::$strictMode = true;
Debugger::enable($this->isDebugMode() ? Debugger::DEVELOPMENT : Debugger::PRODUCTION, $this->staticParameters['logDir']);
/** @infection-ignore-all */
|
Infection PHP:
src/Boot/BaseConfigurator.php#L119
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
if (!Dependencies::isPackageLoaded('tracy/tracy')) {
throw PackageRequired::forMethod(['tracy/tracy'], static::class, __FUNCTION__);
}
- @mkdir($this->staticParameters['logDir'], 0777, true);
+ @mkdir($this->staticParameters['logDir'], 512, true);
Debugger::$strictMode = true;
Debugger::enable($this->isDebugMode() ? Debugger::DEVELOPMENT : Debugger::PRODUCTION, $this->staticParameters['logDir']);
/** @infection-ignore-all */
|
Infection PHP:
src/Boot/BaseConfigurator.php#L179
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
private function generateContainer(Compiler $compiler, array $configFiles): void
{
$loader = new Loader();
- $loader->setParameters($this->staticParameters);
+
foreach ($this->configAdapters as $extension => $adapter) {
$loader->addAdapter($extension, $adapter);
}
|
Infection PHP:
src/Boot/BaseConfigurator.php#L200
Escaped Mutant for Mutator "UnwrapArrayKeys":
@@ @@
$now = new DateTimeImmutable();
$parameters = DIHelpers::escape($this->staticParameters) + ['container' => ['compiledAtTimestamp' => (int) $now->format('U'), 'compiledAt' => $now->format(DATE_ATOM), 'className' => new Literal('static::class')]];
$compiler->addConfig(['parameters' => $parameters]);
- $compiler->setDynamicParameterNames(array_keys($this->dynamicParameters));
+ $compiler->setDynamicParameterNames($this->dynamicParameters);
$builder = $compiler->getContainerBuilder();
$builder->addExcludedClasses($this->autowireExcludedClasses);
$compiler->addExtension('extensions', new ExtensionsExtension());
|
Infection PHP:
src/Boot/BaseConfigurator.php#L200
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$now = new DateTimeImmutable();
$parameters = DIHelpers::escape($this->staticParameters) + ['container' => ['compiledAtTimestamp' => (int) $now->format('U'), 'compiledAt' => $now->format(DATE_ATOM), 'className' => new Literal('static::class')]];
$compiler->addConfig(['parameters' => $parameters]);
- $compiler->setDynamicParameterNames(array_keys($this->dynamicParameters));
+
$builder = $compiler->getContainerBuilder();
$builder->addExcludedClasses($this->autowireExcludedClasses);
$compiler->addExtension('extensions', new ExtensionsExtension());
|
Infection PHP:
src/Boot/BaseConfigurator.php#L239
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$loader = new ContainerLoader($buildDir, $this->staticParameters['debugMode']);
$configFiles = $this->loadConfigFiles();
$containerKey = $this->getContainerKey($configFiles);
- $this->reloadContainerOnDemand($loader, $containerKey, $buildDir);
+
$containerClass = $loader->load(fn(Compiler $compiler) => $this->generateContainer($compiler, $configFiles), $containerKey);
assert(is_subclass_of($containerClass, Container::class));
return $containerClass;
|
Infection PHP:
src/Boot/BaseConfigurator.php#L291
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation":
@@ @@
*/
private function reloadContainerOnDemand(ContainerLoader $loader, array $containerKey, string $buildDir): void
{
- $this->forceReloadContainer && !class_exists($containerClass = $loader->getClassName($containerKey), false) && is_file($file = "{$buildDir}/{$containerClass}.php") && @Unlink($file);
+ !$this->forceReloadContainer && class_exists($containerClass = $loader->getClassName($containerKey), false) && !is_file($file = "{$buildDir}/{$containerClass}.php") && !@Unlink($file);
}
}
|
Infection PHP:
src/Boot/BaseConfigurator.php#L291
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
@@ @@
*/
private function reloadContainerOnDemand(ContainerLoader $loader, array $containerKey, string $buildDir): void
{
- $this->forceReloadContainer && !class_exists($containerClass = $loader->getClassName($containerKey), false) && is_file($file = "{$buildDir}/{$containerClass}.php") && @Unlink($file);
+ $this->forceReloadContainer && !class_exists($containerClass = $loader->getClassName($containerKey), false) && !is_file($file = "{$buildDir}/{$containerClass}.php") && @Unlink($file);
}
}
|
Infection PHP:
src/Boot/BaseConfigurator.php#L291
Escaped Mutant for Mutator "LogicalAndNegation":
@@ @@
*/
private function reloadContainerOnDemand(ContainerLoader $loader, array $containerKey, string $buildDir): void
{
- $this->forceReloadContainer && !class_exists($containerClass = $loader->getClassName($containerKey), false) && is_file($file = "{$buildDir}/{$containerClass}.php") && @Unlink($file);
+ !($this->forceReloadContainer && !class_exists($containerClass = $loader->getClassName($containerKey), false) && is_file($file = "{$buildDir}/{$containerClass}.php") && @Unlink($file));
}
}
|
Infection PHP:
src/Boot/BaseConfigurator.php#L292
Escaped Mutant for Mutator "FalseValue":
@@ @@
*/
private function reloadContainerOnDemand(ContainerLoader $loader, array $containerKey, string $buildDir): void
{
- $this->forceReloadContainer && !class_exists($containerClass = $loader->getClassName($containerKey), false) && is_file($file = "{$buildDir}/{$containerClass}.php") && @Unlink($file);
+ $this->forceReloadContainer && !class_exists($containerClass = $loader->getClassName($containerKey), true) && is_file($file = "{$buildDir}/{$containerClass}.php") && @Unlink($file);
}
}
|
Loading