Update dependency psalm/plugin-phpunit to ^0.19.0 #315
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
2 errors and 23 warnings
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 / Lint composer.json (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
run / Coding Standards (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
run / Code Coverage (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
run / Static Code Analysis (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
run / Mutation Tests (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
run / Mutation Tests (8.3):
src/DependencyInjection/Compiler/AutoConfigureAdminClassesCompilerPass.php#L66
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
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":
--- Original
+++ New
@@ @@
$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":
--- Original
+++ New
@@ @@
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":
--- Original
+++ New
@@ @@
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":
--- Original
+++ New
@@ @@
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":
--- Original
+++ New
@@ @@
$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":
--- Original
+++ New
@@ @@
}
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":
--- Original
+++ New
@@ @@
}
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":
--- Original
+++ New
@@ @@
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":
--- Original
+++ New
@@ @@
$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 / Test: PHP 8.3, Symfony 6.4, highest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
run / Test: PHP 8.2, Symfony 6.4, highest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
run / Test: PHP 8.2, Symfony 7.0, lowest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
run / Test: PHP 8.3, Symfony 6.4, lowest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
run / Test: PHP 8.2, Symfony 7.0, highest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
run / Test: PHP 8.3, Symfony 7.0, lowest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
run / Test: PHP 8.3, Symfony 7.0, highest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
run / Test: PHP 8.2, Symfony 6.4, lowest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|