Update dependency symfony/phpunit-bridge to v7 #1485
continuous-integration.yml
on: pull_request
run
/
Generate test matrix
4s
Matrix: run / Code Coverage
Matrix: run / Coding Standards
Matrix: run / Lint composer.json
Matrix: run / Lint symfony container
Matrix: run / Mutation Tests
Matrix: run / Static Code Analysis
Matrix: run / Lint twig files
Matrix: run / Lint XLIFF files
Matrix: run / Lint YML files
Matrix: run / tests
Annotations
10 errors and 10 warnings
run / Test: PHP 8.2, Symfony 5.4, highest)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires symfony/config ^7.0 -> satisfiable by symfony/config[v7.0.0].
- symfony/config v7.0.0 requires symfony/filesystem ^6.4|^7.0 -> found symfony/filesystem[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 2
- Root composer.json requires symfony/expression-language ^7.0 -> satisfiable by symfony/expression-language[v7.0.0].
- symfony/expression-language v7.0.0 requires symfony/cache ^6.4|^7.0 -> found symfony/cache[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 3
- Root composer.json requires symfony/framework-bundle ^7.0.0 -> satisfiable by symfony/framework-bundle[v7.0.0, v7.0.1].
- symfony/framework-bundle[v7.0.0, ..., v7.0.1] require symfony/cache ^6.4|^7.0 -> found symfony/cache[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 4
- Root composer.json requires symfony/http-kernel ^7.0 -> satisfiable by symfony/http-kernel[v7.0.0, v7.0.1].
- symfony/http-kernel[v7.0.0, ..., v7.0.1] require symfony/error-handler ^6.4|^7.0 -> found symfony/error-handler[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 5
- Root composer.json requires symfony/browser-kit ^7.0 -> satisfiable by symfony/browser-kit[v7.0.0].
- symfony/browser-kit v7.0.0 requires symfony/dom-crawler ^6.4|^7.0 -> found symfony/dom-crawler[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 6
- sonata-project/block-bundle 5.1.0 requires symfony/config ^5.4 || ^6.2 || ^7.0 -> satisfiable by symfony/config[v7.0.0].
- sonata-project/block-bundle 4.21.0 requires symfony/config ^4.4 || ^5.4 || ^6.2 -> found symfony/config[v4.4.0, ..., v4.4.44, v5.4.0, ..., v5.4.31, v6.2.0, ..., v6.4.0] but it conflicts with your root composer.json require (^7.0).
- sonata-project/block-bundle[5.0.0, ..., 5.0.1] require symfony/config ^5.4 || ^6.2 -> found symfony/config[v5.4.0, ..., v5.4.31, v6.2.0, ..., v6.4.0] but it conflicts with your root composer.json require (^7.0).
- symfony/config v7.0.0 requires symfony/filesystem ^6.4|^7.0 -> found symfony/filesystem[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires sonata-project/block-bundle ^4.21 || ^5.0 -> satisfiable by sonata-project/block-bundle[4.21.0, 5.0.0, 5.0.1, 5.1.0].
|
run / Test: PHP 8.2, Symfony 5.4, highest)
Process completed with exit code 2.
|
run / Test: PHP 8.2, Symfony 6.3, highest)
The job was canceled because "_8_2_5_4_highest" failed.
|
run / Test: PHP 8.3, Symfony 6.3, lowest)
The job was canceled because "_8_2_5_4_highest" failed.
|
run / Test: PHP 8.3, Symfony 6.3, highest)
The job was canceled because "_8_2_5_4_highest" failed.
|
run / Test: PHP 8.3, Symfony 5.4, lowest)
The job was canceled because "_8_2_5_4_highest" failed.
|
run / Test: PHP 8.2, Symfony 6.3, lowest)
The job was canceled because "_8_2_5_4_highest" failed.
|
run / Test: PHP 8.3, Symfony 5.4, highest)
The job was canceled because "_8_2_5_4_highest" failed.
|
run / Test: PHP 8.2, Symfony 5.4, lowest)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires symfony/config ^7.0 -> satisfiable by symfony/config[v7.0.0].
- symfony/config v7.0.0 requires symfony/filesystem ^6.4|^7.0 -> found symfony/filesystem[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 2
- Root composer.json requires symfony/expression-language ^7.0 -> satisfiable by symfony/expression-language[v7.0.0].
- symfony/expression-language v7.0.0 requires symfony/cache ^6.4|^7.0 -> found symfony/cache[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 3
- Root composer.json requires symfony/framework-bundle ^7.0.0 -> satisfiable by symfony/framework-bundle[v7.0.0, v7.0.1].
- symfony/framework-bundle[v7.0.0, ..., v7.0.1] require symfony/cache ^6.4|^7.0 -> found symfony/cache[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 4
- Root composer.json requires symfony/http-kernel ^7.0 -> satisfiable by symfony/http-kernel[v7.0.0, v7.0.1].
- symfony/http-kernel[v7.0.0, ..., v7.0.1] require symfony/error-handler ^6.4|^7.0 -> found symfony/error-handler[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 5
- Root composer.json requires symfony/browser-kit ^7.0 -> satisfiable by symfony/browser-kit[v7.0.0].
- symfony/browser-kit v7.0.0 requires symfony/dom-crawler ^6.4|^7.0 -> found symfony/dom-crawler[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 6
- sonata-project/block-bundle 5.1.0 requires symfony/config ^5.4 || ^6.2 || ^7.0 -> satisfiable by symfony/config[v7.0.0].
- sonata-project/block-bundle 4.21.0 requires symfony/config ^4.4 || ^5.4 || ^6.2 -> found symfony/config[v4.4.0, ..., v4.4.44, v5.4.0, ..., v5.4.31, v6.2.0, ..., v6.4.0] but it conflicts with your root composer.json require (^7.0).
- sonata-project/block-bundle[5.0.0, ..., 5.0.1] require symfony/config ^5.4 || ^6.2 -> found symfony/config[v5.4.0, ..., v5.4.31, v6.2.0, ..., v6.4.0] but it conflicts with your root composer.json require (^7.0).
- symfony/config v7.0.0 requires symfony/filesystem ^6.4|^7.0 -> found symfony/filesystem[v6.4.0, v7.0.0] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires sonata-project/block-bundle ^4.21 || ^5.0 -> satisfiable by sonata-project/block-bundle[4.21.0, 5.0.0, 5.0.1, 5.1.0].
|
run / Test: PHP 8.2, Symfony 5.4, lowest)
The operation was canceled.
|
run / Mutation Tests (8.3):
src/DependencyInjection/Compiler/MenuCompilerPass.php#L23
Escaped Mutant for Mutator "LogicalOr":
--- Original
+++ New
@@ @@
public function process(ContainerBuilder $container) : void
{
$groups = $container->getParameter('nucleos_menu.groups');
- if (!\is_array($groups) || 0 === \count($groups)) {
+ if (!\is_array($groups) && 0 === \count($groups)) {
return;
}
$registry = $container->getDefinition('sonata.block.menu.registry');
|
run / Mutation Tests (8.3):
src/DependencyInjection/Configuration.php#L58
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
$menuNode = $node->children()->arrayNode('groups')->useAttributeAsKey('id')->prototype('array')->fixXmlConfig('attribute')->fixXmlConfig('item')->addDefaultsIfNotSet()->children()->scalarNode('name')->defaultNull()->end()->arrayNode('attributes')->useAttributeAsKey('id')->defaultValue([])->prototype('scalar')->end()->end()->arrayNode('items')->useAttributeAsKey('id')->defaultValue([])->prototype('array');
$this->buildPathNode($menuNode);
- $menuNode->end()->end()->end()->end();
+
}
private function buildPathNode(NodeDefinition $node) : void
{
|
run / Mutation Tests (8.3):
src/Menu/ConfigBuilder.php#L31
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
{
$this->factory = $factory;
$this->translator = $translator;
- $this->defaultOptions = ['attributes' => ['class' => 'dropdown'], 'childrenAttributes' => ['class' => 'dropdown-menu'], 'linkAttributes' => ['class' => 'dropdown-toggle', 'data-toggle' => 'dropdown', 'data-target' => '#'], 'extras' => ['safe_label' => true, 'translation_domain' => false]];
+ $this->defaultOptions = ['childrenAttributes' => ['class' => 'dropdown-menu'], 'linkAttributes' => ['class' => 'dropdown-toggle', 'data-toggle' => 'dropdown', 'data-target' => '#'], 'extras' => ['safe_label' => true, 'translation_domain' => false]];
}
public function buildMenu(array $menu, array $options) : ItemInterface
{
|
run / Mutation Tests (8.3):
src/Menu/ConfigBuilder.php#L32
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
{
$this->factory = $factory;
$this->translator = $translator;
- $this->defaultOptions = ['attributes' => ['class' => 'dropdown'], 'childrenAttributes' => ['class' => 'dropdown-menu'], 'linkAttributes' => ['class' => 'dropdown-toggle', 'data-toggle' => 'dropdown', 'data-target' => '#'], 'extras' => ['safe_label' => true, 'translation_domain' => false]];
+ $this->defaultOptions = ['attributes' => [], 'childrenAttributes' => ['class' => 'dropdown-menu'], 'linkAttributes' => ['class' => 'dropdown-toggle', 'data-toggle' => 'dropdown', 'data-target' => '#'], 'extras' => ['safe_label' => true, 'translation_domain' => false]];
}
public function buildMenu(array $menu, array $options) : ItemInterface
{
|
run / Mutation Tests (8.3):
src/Menu/ConfigBuilder.php#L35
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
{
$this->factory = $factory;
$this->translator = $translator;
- $this->defaultOptions = ['attributes' => ['class' => 'dropdown'], 'childrenAttributes' => ['class' => 'dropdown-menu'], 'linkAttributes' => ['class' => 'dropdown-toggle', 'data-toggle' => 'dropdown', 'data-target' => '#'], 'extras' => ['safe_label' => true, 'translation_domain' => false]];
+ $this->defaultOptions = ['attributes' => ['class' => 'dropdown'], 'childrenAttributes' => [], 'linkAttributes' => ['class' => 'dropdown-toggle', 'data-toggle' => 'dropdown', 'data-target' => '#'], 'extras' => ['safe_label' => true, 'translation_domain' => false]];
}
public function buildMenu(array $menu, array $options) : ItemInterface
{
|
run / Mutation Tests (8.3):
src/Menu/ConfigBuilder.php#L38
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
{
$this->factory = $factory;
$this->translator = $translator;
- $this->defaultOptions = ['attributes' => ['class' => 'dropdown'], 'childrenAttributes' => ['class' => 'dropdown-menu'], 'linkAttributes' => ['class' => 'dropdown-toggle', 'data-toggle' => 'dropdown', 'data-target' => '#'], 'extras' => ['safe_label' => true, 'translation_domain' => false]];
+ $this->defaultOptions = ['attributes' => ['class' => 'dropdown'], 'childrenAttributes' => ['class' => 'dropdown-menu'], 'linkAttributes' => ['data-toggle' => 'dropdown', 'data-target' => '#'], 'extras' => ['safe_label' => true, 'translation_domain' => false]];
}
public function buildMenu(array $menu, array $options) : ItemInterface
{
|
run / Mutation Tests (8.3):
src/Menu/ConfigBuilder.php#L43
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
{
$this->factory = $factory;
$this->translator = $translator;
- $this->defaultOptions = ['attributes' => ['class' => 'dropdown'], 'childrenAttributes' => ['class' => 'dropdown-menu'], 'linkAttributes' => ['class' => 'dropdown-toggle', 'data-toggle' => 'dropdown', 'data-target' => '#'], 'extras' => ['safe_label' => true, 'translation_domain' => false]];
+ $this->defaultOptions = ['attributes' => ['class' => 'dropdown'], 'childrenAttributes' => ['class' => 'dropdown-menu'], 'linkAttributes' => ['class' => 'dropdown-toggle', 'data-toggle' => 'dropdown', 'data-target' => '#'], 'extras' => ['translation_domain' => false]];
}
public function buildMenu(array $menu, array $options) : ItemInterface
{
|
run / Mutation Tests (8.3):
src/Menu/ConfigBuilder.php#L44
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
{
$this->factory = $factory;
$this->translator = $translator;
- $this->defaultOptions = ['attributes' => ['class' => 'dropdown'], 'childrenAttributes' => ['class' => 'dropdown-menu'], 'linkAttributes' => ['class' => 'dropdown-toggle', 'data-toggle' => 'dropdown', 'data-target' => '#'], 'extras' => ['safe_label' => true, 'translation_domain' => false]];
+ $this->defaultOptions = ['attributes' => ['class' => 'dropdown'], 'childrenAttributes' => ['class' => 'dropdown-menu'], 'linkAttributes' => ['class' => 'dropdown-toggle', 'data-toggle' => 'dropdown', 'data-target' => '#'], 'extras' => ['safe_label' => false, 'translation_domain' => false]];
}
public function buildMenu(array $menu, array $options) : ItemInterface
{
|
run / Mutation Tests (8.3):
src/Menu/ConfigBuilder.php#L45
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
{
$this->factory = $factory;
$this->translator = $translator;
- $this->defaultOptions = ['attributes' => ['class' => 'dropdown'], 'childrenAttributes' => ['class' => 'dropdown-menu'], 'linkAttributes' => ['class' => 'dropdown-toggle', 'data-toggle' => 'dropdown', 'data-target' => '#'], 'extras' => ['safe_label' => true, 'translation_domain' => false]];
+ $this->defaultOptions = ['attributes' => ['class' => 'dropdown'], 'childrenAttributes' => ['class' => 'dropdown-menu'], 'linkAttributes' => ['class' => 'dropdown-toggle', 'data-toggle' => 'dropdown', 'data-target' => '#'], 'extras' => ['safe_label' => true, 'translation_domain' => true]];
}
public function buildMenu(array $menu, array $options) : ItemInterface
{
|
run / Mutation Tests (8.3):
src/Menu/ConfigBuilder.php#L96
Escaped Mutant for Mutator "GreaterThan":
--- Original
+++ New
@@ @@
{
$label = $this->createLabel($itemDefinition);
$menuOptions = self::getOptions($baseMenuOptions, $itemDefinition);
- $hasChildren = \array_key_exists('children', $itemDefinition) && \count($itemDefinition['children']) > 0;
+ $hasChildren = \array_key_exists('children', $itemDefinition) && \count($itemDefinition['children']) >= 0;
if ($hasChildren) {
$label .= ' <b class="caret caret-menu"></b>';
$menuOptions = array_merge($menuOptions, $this->defaultOptions, ['label' => $label]);
|