Continuous Integration #330
continuous-integration.yml
on: create
run
/
Generate test matrix
2s
Matrix: run / Code Coverage
Matrix: run / Coding Standards
Matrix: run / Lint composer.json
Matrix: run / Mutation Tests
Matrix: run / Static Code Analysis
Matrix: run / tests
Annotations
14 errors and 16 warnings
run / Test: PHP 8.2, Symfony 7.0, highest)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires doctrine/doctrine-fixtures-bundle ^4.0 -> satisfiable by doctrine/doctrine-fixtures-bundle[4.0.0].
- doctrine/doctrine-fixtures-bundle 4.0.0 requires symfony/doctrine-bridge ^5.4.48 || ^6.4.16 || ^7.1.9 -> found symfony/doctrine-bridge[v5.4.48, v6.4.16, v7.1.9, v7.2.0] but these were not loaded, likely because it conflicts with another require.
|
run / Test: PHP 8.2, Symfony 7.0, highest)
Process completed with exit code 2.
|
run / Test: PHP 8.3, Symfony 7.0, highest)
The job was canceled because "_8_2_7_0_highest" failed.
|
run / Test: PHP 8.3, Symfony 6.4, lowest)
The job was canceled because "_8_2_7_0_highest" failed.
|
run / Test: PHP 8.3, Symfony 6.4, lowest)
The operation was canceled.
|
run / Test: PHP 8.2, Symfony 7.0, lowest)
The job was canceled because "_8_2_7_0_highest" failed.
|
run / Test: PHP 8.2, Symfony 7.0, lowest)
The operation was canceled.
|
run / Test: PHP 8.2, Symfony 6.4, highest)
The job was canceled because "_8_2_7_0_highest" failed.
|
run / Test: PHP 8.2, Symfony 6.4, highest)
The operation was canceled.
|
run / Test: PHP 8.3, Symfony 7.0, lowest)
The job was canceled because "_8_2_7_0_highest" failed.
|
run / Static Code Analysis (8.3)
Child process error (exit code 255): PHP Fatal error: Declaration of PHPStan\Doctrine\Mapping\ClassMetadataFactory::newClassMetadataInstance($className) must be compatible with Doctrine\ORM\Mapping\ClassMetadataFactory::newClassMetadataInstance(string $className): Doctrine\ORM\Mapping\ClassMetadata in /home/runner/work/SonataAutoConfigureBundle/SonataAutoConfigureBundle/vendor-bin/tools/vendor/phpstan/phpstan-doctrine/src/Doctrine/Mapping/ClassMetadataFactory.php on line 62
Fatal error: Declaration of PHPStan\Doctrine\Mapping\ClassMetadataFactory::newClassMetadataInstance($className) must be compatible with Doctrine\ORM\Mapping\ClassMetadataFactory::newClassMetadataInstance(string $className): Doctrine\ORM\Mapping\ClassMetadata in /home/runner/work/SonataAutoConfigureBundle/SonataAutoConfigureBundle/vendor-bin/tools/vendor/phpstan/phpstan-doctrine/src/Doctrine/Mapping/ClassMetadataFactory.php on line 62
|
run / Static Code Analysis (8.3)
Process completed with exit code 2.
|
run / Test: PHP 8.2, Symfony 6.4, lowest)
The job was canceled because "_8_2_7_0_highest" failed.
|
run / Test: PHP 8.3, Symfony 6.4, highest)
The job was canceled because "_8_2_7_0_highest" failed.
|
run / Generate test matrix
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
run / Lint composer.json (8.3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
run / Code Coverage (8.3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
run / Static Code Analysis (8.3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
run / Mutation Tests (8.3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
run / Mutation Tests (8.3):
src/DependencyInjection/Compiler/AutoConfigureAdminClassesCompilerPass.php#L66
Escaped Mutant for Mutator "Continue_":
@@ @@
foreach ($container->findTaggedServiceIds('sonata.admin') as $id => $attributes) {
$definition = $container->getDefinition($id);
if (!$definition->isAutoconfigured()) {
- continue;
+ break;
}
$adminClass = $definition->getClass();
if (null === $adminClass) {
|
run / Mutation Tests (8.3):
src/DependencyInjection/Compiler/AutoConfigureAdminClassesCompilerPass.php#L88
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$attributes = $this->getAttributes($adminClass);
foreach ($attributes as $attribute) {
$this->setDefaultValuesForAttribute($inflector, $attribute, $name, $attributeDefaults);
- $container->removeDefinition($id);
+
$definition = $container->setDefinition($attribute->getAdminCode() ?? $id, (new Definition($adminClass))->addTag('sonata.admin', $attribute->getOptions())->setArguments([$attribute->getAdminCode(), $attribute->getEntity(), $attribute->getController()])->setAutoconfigured(true)->setAutowired(true));
if (null !== $attribute->getTranslationDomain()) {
$definition->addMethodCall('setTranslationDomain', [$attribute->getTranslationDomain()]);
|
run / Mutation Tests (8.3):
src/DependencyInjection/Compiler/AutoConfigureAdminClassesCompilerPass.php#L90
Escaped Mutant for Mutator "Coalesce":
@@ @@
foreach ($attributes as $attribute) {
$this->setDefaultValuesForAttribute($inflector, $attribute, $name, $attributeDefaults);
$container->removeDefinition($id);
- $definition = $container->setDefinition($attribute->getAdminCode() ?? $id, (new Definition($adminClass))->addTag('sonata.admin', $attribute->getOptions())->setArguments([$attribute->getAdminCode(), $attribute->getEntity(), $attribute->getController()])->setAutoconfigured(true)->setAutowired(true));
+ $definition = $container->setDefinition($id ?? $attribute->getAdminCode(), (new Definition($adminClass))->addTag('sonata.admin', $attribute->getOptions())->setArguments([$attribute->getAdminCode(), $attribute->getEntity(), $attribute->getController()])->setAutoconfigured(true)->setAutowired(true));
if (null !== $attribute->getTranslationDomain()) {
$definition->addMethodCall('setTranslationDomain', [$attribute->getTranslationDomain()]);
}
|
run / Mutation Tests (8.3):
src/DependencyInjection/Compiler/AutoConfigureAdminClassesCompilerPass.php#L98
Escaped Mutant for Mutator "TrueValue":
@@ @@
foreach ($attributes as $attribute) {
$this->setDefaultValuesForAttribute($inflector, $attribute, $name, $attributeDefaults);
$container->removeDefinition($id);
- $definition = $container->setDefinition($attribute->getAdminCode() ?? $id, (new Definition($adminClass))->addTag('sonata.admin', $attribute->getOptions())->setArguments([$attribute->getAdminCode(), $attribute->getEntity(), $attribute->getController()])->setAutoconfigured(true)->setAutowired(true));
+ $definition = $container->setDefinition($attribute->getAdminCode() ?? $id, (new Definition($adminClass))->addTag('sonata.admin', $attribute->getOptions())->setArguments([$attribute->getAdminCode(), $attribute->getEntity(), $attribute->getController()])->setAutoconfigured(false)->setAutowired(true));
if (null !== $attribute->getTranslationDomain()) {
$definition->addMethodCall('setTranslationDomain', [$attribute->getTranslationDomain()]);
}
|
run / Mutation Tests (8.3):
src/DependencyInjection/Compiler/AutoConfigureAdminClassesCompilerPass.php#L98
Escaped Mutant for Mutator "TrueValue":
@@ @@
foreach ($attributes as $attribute) {
$this->setDefaultValuesForAttribute($inflector, $attribute, $name, $attributeDefaults);
$container->removeDefinition($id);
- $definition = $container->setDefinition($attribute->getAdminCode() ?? $id, (new Definition($adminClass))->addTag('sonata.admin', $attribute->getOptions())->setArguments([$attribute->getAdminCode(), $attribute->getEntity(), $attribute->getController()])->setAutoconfigured(true)->setAutowired(true));
+ $definition = $container->setDefinition($attribute->getAdminCode() ?? $id, (new Definition($adminClass))->addTag('sonata.admin', $attribute->getOptions())->setArguments([$attribute->getAdminCode(), $attribute->getEntity(), $attribute->getController()])->setAutoconfigured(true)->setAutowired(false));
if (null !== $attribute->getTranslationDomain()) {
$definition->addMethodCall('setTranslationDomain', [$attribute->getTranslationDomain()]);
}
|
run / Mutation Tests (8.3):
src/DependencyInjection/Compiler/AutoConfigureAdminClassesCompilerPass.php#L102
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
$container->removeDefinition($id);
$definition = $container->setDefinition($attribute->getAdminCode() ?? $id, (new Definition($adminClass))->addTag('sonata.admin', $attribute->getOptions())->setArguments([$attribute->getAdminCode(), $attribute->getEntity(), $attribute->getController()])->setAutoconfigured(true)->setAutowired(true));
if (null !== $attribute->getTranslationDomain()) {
- $definition->addMethodCall('setTranslationDomain', [$attribute->getTranslationDomain()]);
+ $definition->addMethodCall('setTranslationDomain', []);
}
if (\is_array($attribute->getTemplates())) {
foreach ($attribute->getTemplates() as $key => $template) {
|
run / Mutation Tests (8.3):
src/DependencyInjection/Compiler/AutoConfigureAdminClassesCompilerPass.php#L107
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
}
if (\is_array($attribute->getTemplates())) {
foreach ($attribute->getTemplates() as $key => $template) {
- $definition->addMethodCall('setTemplate', [$key, $template]);
+ $definition->addMethodCall('setTemplate', [$template]);
}
}
if (\is_array($attribute->getChildren())) {
|
run / Mutation Tests (8.3):
src/DependencyInjection/Compiler/AutoConfigureAdminClassesCompilerPass.php#L113
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
}
if (\is_array($attribute->getChildren())) {
foreach ($attribute->getChildren() as $childId) {
- $definition->addMethodCall('addChild', [new Reference($childId)]);
+ $definition->addMethodCall('addChild', []);
}
}
}
|
run / Mutation Tests (8.3):
src/DependencyInjection/Compiler/AutoConfigureAdminClassesCompilerPass.php#L130
Escaped Mutant for Mutator "Identical":
@@ @@
if (null === $attribute->getLabel()) {
$attribute->setLabel($inflector->capitalize(str_replace('_', ' ', $inflector->tableize($name))));
}
- if (null === $attribute->getLabelCatalogue()) {
+ if (null !== $attribute->getLabelCatalogue()) {
$attribute->setLabelCatalogue($defaults['label_catalogue']);
}
if (null === $attribute->getLabelTranslatorStrategy()) {
|
run / Mutation Tests (8.3):
src/DependencyInjection/Compiler/AutoConfigureAdminClassesCompilerPass.php#L131
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$attribute->setLabel($inflector->capitalize(str_replace('_', ' ', $inflector->tableize($name))));
}
if (null === $attribute->getLabelCatalogue()) {
- $attribute->setLabelCatalogue($defaults['label_catalogue']);
+
}
if (null === $attribute->getLabelTranslatorStrategy()) {
$attribute->setLabelTranslatorStrategy($defaults['label_translator_strategy']);
|
run / Coding Standards (8.3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|