update php versions support #122
Annotations
11 warnings
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Infection:
src/DependencyInjection/FeatureFinderFactoryPass.php#L35
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$pheatureFlagsConfig = $container->getExtensionConfig('pheature_flags');
$mergedConfig = array_merge(...$pheatureFlagsConfig);
$finder = $container->register(FeatureFinder::class, FeatureFinder::class)->setAutowired(false)->setLazy(false)->setFactory([FeatureFinderFactory::class, 'create'])->addArgument(new Reference(ToggleConfig::class))->addArgument(new Reference(ChainToggleStrategyFactory::class));
- Assert::keyExists($mergedConfig, 'driver');
+
Assert::string($mergedConfig['driver']);
Assert::keyExists($mergedConfig, 'driver_options');
Assert::isArray($mergedConfig['driver_options']);
|
Infection:
src/DependencyInjection/FeatureFinderFactoryPass.php#L36
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$mergedConfig = array_merge(...$pheatureFlagsConfig);
$finder = $container->register(FeatureFinder::class, FeatureFinder::class)->setAutowired(false)->setLazy(false)->setFactory([FeatureFinderFactory::class, 'create'])->addArgument(new Reference(ToggleConfig::class))->addArgument(new Reference(ChainToggleStrategyFactory::class));
Assert::keyExists($mergedConfig, 'driver');
- Assert::string($mergedConfig['driver']);
+
Assert::keyExists($mergedConfig, 'driver_options');
Assert::isArray($mergedConfig['driver_options']);
if (ToggleConfig::DRIVER_DBAL === $mergedConfig['driver'] || true === in_array(ToggleConfig::DRIVER_DBAL, $mergedConfig['driver_options'], true)) {
|
Infection:
src/DependencyInjection/FeatureFinderFactoryPass.php#L37
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$finder = $container->register(FeatureFinder::class, FeatureFinder::class)->setAutowired(false)->setLazy(false)->setFactory([FeatureFinderFactory::class, 'create'])->addArgument(new Reference(ToggleConfig::class))->addArgument(new Reference(ChainToggleStrategyFactory::class));
Assert::keyExists($mergedConfig, 'driver');
Assert::string($mergedConfig['driver']);
- Assert::keyExists($mergedConfig, 'driver_options');
+
Assert::isArray($mergedConfig['driver_options']);
if (ToggleConfig::DRIVER_DBAL === $mergedConfig['driver'] || true === in_array(ToggleConfig::DRIVER_DBAL, $mergedConfig['driver_options'], true)) {
$finder->addArgument(new Reference(Connection::class));
|
Infection:
src/DependencyInjection/FeatureFinderFactoryPass.php#L38
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
Assert::keyExists($mergedConfig, 'driver');
Assert::string($mergedConfig['driver']);
Assert::keyExists($mergedConfig, 'driver_options');
- Assert::isArray($mergedConfig['driver_options']);
+
if (ToggleConfig::DRIVER_DBAL === $mergedConfig['driver'] || true === in_array(ToggleConfig::DRIVER_DBAL, $mergedConfig['driver_options'], true)) {
$finder->addArgument(new Reference(Connection::class));
} else {
|
Infection:
src/DependencyInjection/FeatureFinderFactoryPass.php#L51
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
} else {
$finder->addArgument(null);
}
- if (ToggleConfig::DRIVER_IN_MEMORY === $mergedConfig['driver'] || true === in_array(ToggleConfig::DRIVER_IN_MEMORY, $mergedConfig['driver_options'], true)) {
+ if (ToggleConfig::DRIVER_IN_MEMORY === $mergedConfig['driver'] || false === in_array(ToggleConfig::DRIVER_IN_MEMORY, $mergedConfig['driver_options'], true)) {
$container->register(InMemoryFeatureFactory::class, InMemoryFeatureFactory::class)->setAutowired(false)->setLazy(true)->addArgument(new Reference(ChainToggleStrategyFactory::class));
}
}
}
|
Infection:
src/DependencyInjection/FeatureFinderFactoryPass.php#L51
Escaped Mutant for Mutator "Identical":
--- Original
+++ New
@@ @@
} else {
$finder->addArgument(null);
}
- if (ToggleConfig::DRIVER_IN_MEMORY === $mergedConfig['driver'] || true === in_array(ToggleConfig::DRIVER_IN_MEMORY, $mergedConfig['driver_options'], true)) {
+ if (ToggleConfig::DRIVER_IN_MEMORY === $mergedConfig['driver'] || true !== in_array(ToggleConfig::DRIVER_IN_MEMORY, $mergedConfig['driver_options'], true)) {
$container->register(InMemoryFeatureFactory::class, InMemoryFeatureFactory::class)->setAutowired(false)->setLazy(true)->addArgument(new Reference(ChainToggleStrategyFactory::class));
}
}
}
|
Infection:
src/DependencyInjection/FeatureFinderFactoryPass.php#L54
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
$finder->addArgument(null);
}
if (ToggleConfig::DRIVER_IN_MEMORY === $mergedConfig['driver'] || true === in_array(ToggleConfig::DRIVER_IN_MEMORY, $mergedConfig['driver_options'], true)) {
- $container->register(InMemoryFeatureFactory::class, InMemoryFeatureFactory::class)->setAutowired(false)->setLazy(true)->addArgument(new Reference(ChainToggleStrategyFactory::class));
+ $container->register(InMemoryFeatureFactory::class, InMemoryFeatureFactory::class)->setAutowired(true)->setLazy(true)->addArgument(new Reference(ChainToggleStrategyFactory::class));
}
}
}
|
Infection:
src/DependencyInjection/FeatureFinderFactoryPass.php#L55
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
$finder->addArgument(null);
}
if (ToggleConfig::DRIVER_IN_MEMORY === $mergedConfig['driver'] || true === in_array(ToggleConfig::DRIVER_IN_MEMORY, $mergedConfig['driver_options'], true)) {
- $container->register(InMemoryFeatureFactory::class, InMemoryFeatureFactory::class)->setAutowired(false)->setLazy(true)->addArgument(new Reference(ChainToggleStrategyFactory::class));
+ $container->register(InMemoryFeatureFactory::class, InMemoryFeatureFactory::class)->setAutowired(false)->setLazy(false)->addArgument(new Reference(ChainToggleStrategyFactory::class));
}
}
}
|
Infection:
src/DependencyInjection/FeatureRepositoryFactoryPass.php#L30
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$pheatureFlagsConfig = $container->getExtensionConfig('pheature_flags');
$mergedConfig = array_merge(...$pheatureFlagsConfig);
$repository = $container->register(FeatureRepository::class, FeatureRepository::class)->setAutowired(false)->setLazy(false)->setFactory([FeatureRepositoryFactory::class, 'create'])->addArgument(new Reference(ToggleConfig::class));
- Assert::keyExists($mergedConfig, 'driver');
+
Assert::string($mergedConfig['driver']);
Assert::keyExists($mergedConfig, 'driver_options');
Assert::isArray($mergedConfig['driver_options']);
|
Infection:
src/DependencyInjection/FeatureRepositoryFactoryPass.php#L31
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$mergedConfig = array_merge(...$pheatureFlagsConfig);
$repository = $container->register(FeatureRepository::class, FeatureRepository::class)->setAutowired(false)->setLazy(false)->setFactory([FeatureRepositoryFactory::class, 'create'])->addArgument(new Reference(ToggleConfig::class));
Assert::keyExists($mergedConfig, 'driver');
- Assert::string($mergedConfig['driver']);
+
Assert::keyExists($mergedConfig, 'driver_options');
Assert::isArray($mergedConfig['driver_options']);
if (ToggleConfig::DRIVER_DBAL === $mergedConfig['driver'] || true === in_array(ToggleConfig::DRIVER_DBAL, $mergedConfig['driver_options'], true)) {
|
The logs for this run have expired and are no longer available.
Loading