Update phpstan to 1.12 #97
Annotations
16 warnings
tests (8.3, 7.1.*):
src/DependencyInjection/CompilerPass/SorterConfigPass.php#L32
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
$container->getParameterBag()->remove('budgegeria_intl.sorter');
foreach ($sorterConfigs as $serviceSuffix => $sorterConfig) {
/** @phpstan-var string $locale */
- $locale = $sorterConfig['locale'] ?? $defaultLocale;
+ $locale = $defaultLocale ?? $sorterConfig['locale'];
unset($sorterConfig['locale']);
$factory = $container->getDefinition('budgegeria_intl_bundle.sorter.factory.standard');
$builderDefinition = new Definition(Builder::class, [$locale, $factory]);
|
tests (8.3, 7.1.*):
src/DependencyInjection/Configuration.php#L48
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$sorterChildren->scalarNode($sorterConfigNames)->end();
}
$sorterChildren->scalarNode('locale')->end();
- $sorterChildren->end()->end()->end()->end();
+
}
}
|
tests (8.3, 6.4.*):
src/DependencyInjection/CompilerPass/SorterConfigPass.php#L32
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
$container->getParameterBag()->remove('budgegeria_intl.sorter');
foreach ($sorterConfigs as $serviceSuffix => $sorterConfig) {
/** @phpstan-var string $locale */
- $locale = $sorterConfig['locale'] ?? $defaultLocale;
+ $locale = $defaultLocale ?? $sorterConfig['locale'];
unset($sorterConfig['locale']);
$factory = $container->getDefinition('budgegeria_intl_bundle.sorter.factory.standard');
$builderDefinition = new Definition(Builder::class, [$locale, $factory]);
|
tests (8.3, 6.4.*):
src/DependencyInjection/Configuration.php#L48
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$sorterChildren->scalarNode($sorterConfigNames)->end();
}
$sorterChildren->scalarNode('locale')->end();
- $sorterChildren->end()->end()->end()->end();
+
}
}
|
tests (8.3, 7.0.*):
src/DependencyInjection/CompilerPass/SorterConfigPass.php#L32
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
$container->getParameterBag()->remove('budgegeria_intl.sorter');
foreach ($sorterConfigs as $serviceSuffix => $sorterConfig) {
/** @phpstan-var string $locale */
- $locale = $sorterConfig['locale'] ?? $defaultLocale;
+ $locale = $defaultLocale ?? $sorterConfig['locale'];
unset($sorterConfig['locale']);
$factory = $container->getDefinition('budgegeria_intl_bundle.sorter.factory.standard');
$builderDefinition = new Definition(Builder::class, [$locale, $factory]);
|
tests (8.3, 7.0.*):
src/DependencyInjection/Configuration.php#L48
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$sorterChildren->scalarNode($sorterConfigNames)->end();
}
$sorterChildren->scalarNode('locale')->end();
- $sorterChildren->end()->end()->end()->end();
+
}
}
|
tests (8.2, 7.1.*):
src/DependencyInjection/CompilerPass/SorterConfigPass.php#L32
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
$container->getParameterBag()->remove('budgegeria_intl.sorter');
foreach ($sorterConfigs as $serviceSuffix => $sorterConfig) {
/** @phpstan-var string $locale */
- $locale = $sorterConfig['locale'] ?? $defaultLocale;
+ $locale = $defaultLocale ?? $sorterConfig['locale'];
unset($sorterConfig['locale']);
$factory = $container->getDefinition('budgegeria_intl_bundle.sorter.factory.standard');
$builderDefinition = new Definition(Builder::class, [$locale, $factory]);
|
tests (8.2, 7.1.*):
src/DependencyInjection/Configuration.php#L48
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$sorterChildren->scalarNode($sorterConfigNames)->end();
}
$sorterChildren->scalarNode('locale')->end();
- $sorterChildren->end()->end()->end()->end();
+
}
}
|
tests (8.3, 5.4.*):
src/DependencyInjection/CompilerPass/SorterConfigPass.php#L32
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
$container->getParameterBag()->remove('budgegeria_intl.sorter');
foreach ($sorterConfigs as $serviceSuffix => $sorterConfig) {
/** @phpstan-var string $locale */
- $locale = $sorterConfig['locale'] ?? $defaultLocale;
+ $locale = $defaultLocale ?? $sorterConfig['locale'];
unset($sorterConfig['locale']);
$factory = $container->getDefinition('budgegeria_intl_bundle.sorter.factory.standard');
$builderDefinition = new Definition(Builder::class, [$locale, $factory]);
|
tests (8.3, 5.4.*):
src/DependencyInjection/Configuration.php#L48
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$sorterChildren->scalarNode($sorterConfigNames)->end();
}
$sorterChildren->scalarNode('locale')->end();
- $sorterChildren->end()->end()->end()->end();
+
}
}
|
tests (8.2, 7.0.*):
src/DependencyInjection/CompilerPass/SorterConfigPass.php#L32
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
$container->getParameterBag()->remove('budgegeria_intl.sorter');
foreach ($sorterConfigs as $serviceSuffix => $sorterConfig) {
/** @phpstan-var string $locale */
- $locale = $sorterConfig['locale'] ?? $defaultLocale;
+ $locale = $defaultLocale ?? $sorterConfig['locale'];
unset($sorterConfig['locale']);
$factory = $container->getDefinition('budgegeria_intl_bundle.sorter.factory.standard');
$builderDefinition = new Definition(Builder::class, [$locale, $factory]);
|
tests (8.2, 7.0.*):
src/DependencyInjection/Configuration.php#L48
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$sorterChildren->scalarNode($sorterConfigNames)->end();
}
$sorterChildren->scalarNode('locale')->end();
- $sorterChildren->end()->end()->end()->end();
+
}
}
|
tests (8.2, 5.4.*):
src/DependencyInjection/CompilerPass/SorterConfigPass.php#L32
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
$container->getParameterBag()->remove('budgegeria_intl.sorter');
foreach ($sorterConfigs as $serviceSuffix => $sorterConfig) {
/** @phpstan-var string $locale */
- $locale = $sorterConfig['locale'] ?? $defaultLocale;
+ $locale = $defaultLocale ?? $sorterConfig['locale'];
unset($sorterConfig['locale']);
$factory = $container->getDefinition('budgegeria_intl_bundle.sorter.factory.standard');
$builderDefinition = new Definition(Builder::class, [$locale, $factory]);
|
tests (8.2, 5.4.*):
src/DependencyInjection/Configuration.php#L48
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$sorterChildren->scalarNode($sorterConfigNames)->end();
}
$sorterChildren->scalarNode('locale')->end();
- $sorterChildren->end()->end()->end()->end();
+
}
}
|
tests (8.2, 6.4.*):
src/DependencyInjection/CompilerPass/SorterConfigPass.php#L32
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
$container->getParameterBag()->remove('budgegeria_intl.sorter');
foreach ($sorterConfigs as $serviceSuffix => $sorterConfig) {
/** @phpstan-var string $locale */
- $locale = $sorterConfig['locale'] ?? $defaultLocale;
+ $locale = $defaultLocale ?? $sorterConfig['locale'];
unset($sorterConfig['locale']);
$factory = $container->getDefinition('budgegeria_intl_bundle.sorter.factory.standard');
$builderDefinition = new Definition(Builder::class, [$locale, $factory]);
|
tests (8.2, 6.4.*):
src/DependencyInjection/Configuration.php#L48
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$sorterChildren->scalarNode($sorterConfigNames)->end();
}
$sorterChildren->scalarNode('locale')->end();
- $sorterChildren->end()->end()->end()->end();
+
}
}
|