Skip to content

update changelog to v0.8.0 #128

update changelog to v0.8.0

update changelog to v0.8.0 #128

Triggered via push April 10, 2024 17:12
Status Success
Total duration 52s
Artifacts
Matrix: Mutation tests
Fit to window
Zoom out
Zoom in

Annotations

48 warnings
Mutation tests (locked, 8.3, ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Mutation tests (locked, 8.3, ubuntu-latest)
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/
Mutation tests (locked, 8.3, ubuntu-latest): 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']);
Mutation tests (locked, 8.3, ubuntu-latest): 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)) {
Mutation tests (locked, 8.3, ubuntu-latest): 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));
Mutation tests (locked, 8.3, ubuntu-latest): 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 {
Mutation tests (locked, 8.3, ubuntu-latest): 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)); } } }
Mutation tests (locked, 8.3, ubuntu-latest): 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)); } } }
Mutation tests (locked, 8.3, ubuntu-latest): 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)); } } }
Mutation tests (locked, 8.3, ubuntu-latest): 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)); } } }
Mutation tests (locked, 8.3, ubuntu-latest): 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']);
Mutation tests (locked, 8.3, ubuntu-latest): 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)) {
Mutation tests (locked, 8.0, ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Mutation tests (locked, 8.0, ubuntu-latest)
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/
Mutation tests (locked, 8.0, ubuntu-latest): 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']);
Mutation tests (locked, 8.0, ubuntu-latest): 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)) {
Mutation tests (locked, 8.0, ubuntu-latest): 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));
Mutation tests (locked, 8.0, ubuntu-latest): 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 {
Mutation tests (locked, 8.2, ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Mutation tests (locked, 8.0, ubuntu-latest): 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)); } } }
Mutation tests (locked, 8.2, ubuntu-latest)
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/
Mutation tests (locked, 8.0, ubuntu-latest): 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)); } } }
Mutation tests (locked, 8.2, ubuntu-latest): 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']);
Mutation tests (locked, 8.0, ubuntu-latest): 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)); } } }
Mutation tests (locked, 8.2, ubuntu-latest): 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)) {
Mutation tests (locked, 8.0, ubuntu-latest): 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)); } } }
Mutation tests (locked, 8.2, ubuntu-latest): 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));
Mutation tests (locked, 8.0, ubuntu-latest): 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']);
Mutation tests (locked, 8.2, ubuntu-latest): 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 {
Mutation tests (locked, 8.2, ubuntu-latest): 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)); } } }
Mutation tests (locked, 8.0, ubuntu-latest): 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)) {
Mutation tests (locked, 8.2, ubuntu-latest): 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)); } } }
Mutation tests (locked, 8.2, ubuntu-latest): 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)); } } }
Mutation tests (locked, 8.2, ubuntu-latest): 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)); } } }
Mutation tests (locked, 8.2, ubuntu-latest): 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']);
Mutation tests (locked, 8.2, ubuntu-latest): 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)) {
Mutation tests (locked, 8.1, ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Mutation tests (locked, 8.1, ubuntu-latest)
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/
Mutation tests (locked, 8.1, ubuntu-latest): 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']);
Mutation tests (locked, 8.1, ubuntu-latest): 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)) {
Mutation tests (locked, 8.1, ubuntu-latest): 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));
Mutation tests (locked, 8.1, ubuntu-latest): 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 {
Mutation tests (locked, 8.1, ubuntu-latest): 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)); } } }
Mutation tests (locked, 8.1, ubuntu-latest): 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)); } } }
Mutation tests (locked, 8.1, ubuntu-latest): 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)); } } }
Mutation tests (locked, 8.1, ubuntu-latest): 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)); } } }
Mutation tests (locked, 8.1, ubuntu-latest): 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']);
Mutation tests (locked, 8.1, ubuntu-latest): 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)) {