Fix symfony deprecation #1668
Annotations
10 warnings
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
src/Block/Service/SpaceStatisticBlockService.php#L120
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
public function configureSettings(OptionsResolver $resolver): void
{
$resolver->setDefaults(['title' => null, 'translation_domain' => null, 'icon' => 'fa fa-bar-chart-o', 'class' => null, 'login' => null, 'password' => null, 'template' => '@NucleosAllInkl/Block/block_space_statistic.html.twig']);
- $resolver->setRequired(['login', 'password']);
+ $resolver->setRequired(['password']);
}
public function validate(ErrorElement $errorElement, BlockInterface $block): void
{
|
src/Block/Service/SpaceStatisticBlockService.php#L120
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
public function configureSettings(OptionsResolver $resolver): void
{
$resolver->setDefaults(['title' => null, 'translation_domain' => null, 'icon' => 'fa fa-bar-chart-o', 'class' => null, 'login' => null, 'password' => null, 'template' => '@NucleosAllInkl/Block/block_space_statistic.html.twig']);
- $resolver->setRequired(['login', 'password']);
+
}
public function validate(ErrorElement $errorElement, BlockInterface $block): void
{
|
src/DependencyInjection/NucleosAllInklExtension.php#L36
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
$loader = new Loader\PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
- $loader->load('block.php');
+
$loader->load('commands.php');
$loader->load('services.php');
$this->configureMail($container, $config);
|
src/DependencyInjection/NucleosAllInklExtension.php#L37
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$config = $this->processConfiguration($configuration, $configs);
$loader = new Loader\PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
$loader->load('block.php');
- $loader->load('commands.php');
+
$loader->load('services.php');
$this->configureMail($container, $config);
$this->configureCheck($container, $config);
|
src/DependencyInjection/NucleosAllInklExtension.php#L40
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$loader->load('block.php');
$loader->load('commands.php');
$loader->load('services.php');
- $this->configureMail($container, $config);
+
$this->configureCheck($container, $config);
$this->configureApi($container, $config);
}
|
src/DependencyInjection/NucleosAllInklExtension.php#L41
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$loader->load('commands.php');
$loader->load('services.php');
$this->configureMail($container, $config);
- $this->configureCheck($container, $config);
+
$this->configureApi($container, $config);
}
/**
|
src/DependencyInjection/NucleosAllInklExtension.php#L59
Escaped Mutant for Mutator "LogicalNot":
@@ @@
*/
private function configureMail(ContainerBuilder $container, array $config): void
{
- if (!\array_key_exists('mail', $config)) {
+ if (\array_key_exists('mail', $config)) {
return;
}
$container->getDefinition(SymfonyMailer::class)->replaceArgument(2, ['warning' => $config['mail']]);
|
src/DependencyInjection/NucleosAllInklExtension.php#L75
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
*/
private function configureCheck(ContainerBuilder $container, array $config): void
{
- $container->setParameter('nucleos_allinkl.check.warning', $config['check']['warning']);
+
$container->setParameter('nucleos_allinkl.check.accounts', $config['check']['accounts']);
}
}
|
src/DependencyInjection/NucleosAllInklExtension.php#L76
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
private function configureCheck(ContainerBuilder $container, array $config): void
{
$container->setParameter('nucleos_allinkl.check.warning', $config['check']['warning']);
- $container->setParameter('nucleos_allinkl.check.accounts', $config['check']['accounts']);
+
}
}
|
This job succeeded
Loading