Skip to content

[general] Fixing config (#246) #743

[general] Fixing config (#246)

[general] Fixing config (#246) #743

Triggered via push February 25, 2024 23:31
Status Success
Total duration 2m 59s
Artifacts 2

ci.yaml

on: push
Matrix: Code linting
Matrix: Code quality assurance
Matrix: Code static analysis
Matrix: Test for mutants
Matrix: Build code for distribution
Matrix: Code tests
Matrix: Publish code distribution to Github packages
Matrix: Publish code distribution to NPM
Matrix: Code tests with code coverage
Fit to window
Zoom out
Zoom in

Annotations

28 warnings
Code linting (8.2, 20, ubuntu-latest)
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/.
Code linting (8.2, 20, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Code quality assurance (8.2, 20, ubuntu-latest)
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/.
Code quality assurance (8.2, 20, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Code static analysis (8.2, 20, ubuntu-latest)
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/.
Code static analysis (8.2, 20, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build code for distribution (ubuntu-latest, 20)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Test for mutants (8.2, ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Test for mutants (8.2, ubuntu-latest): src/DI/MetadataExtension.php#L88
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ /** * DOCUMENTS SERVICES */ - $metadataCache = $builder->addDefinition($this->prefix('document.cache'), new DI\Definitions\ServiceDefinition())->setType(Caching\Cache::class)->setArguments(['namespace' => 'metadata_class_metadata'])->setAutowired(false); + $metadataCache = $builder->addDefinition($this->prefix('document.cache'), new DI\Definitions\ServiceDefinition())->setType(Caching\Cache::class)->setArguments([])->setAutowired(false); $builder->addDefinition('document.factory', new DI\Definitions\ServiceDefinition())->setType(Documents\DocumentFactory::class); $attributeDriver = $builder->addDefinition('document.mapping.attributeDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\AttributeDriver::class)->setArguments(['paths' => array_values($configuration->documents->mapping)])->addSetup('addExcludePaths', [$configuration->documents->excludePaths])->addTag(self::DRIVER_TAG)->setAutowired(false); $mappingDriver = $builder->addDefinition('document.mapping.mappingDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\MappingDriverChain::class);
Test for mutants (8.2, ubuntu-latest): src/DI/MetadataExtension.php#L91
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ /** * DOCUMENTS SERVICES */ - $metadataCache = $builder->addDefinition($this->prefix('document.cache'), new DI\Definitions\ServiceDefinition())->setType(Caching\Cache::class)->setArguments(['namespace' => 'metadata_class_metadata'])->setAutowired(false); + $metadataCache = $builder->addDefinition($this->prefix('document.cache'), new DI\Definitions\ServiceDefinition())->setType(Caching\Cache::class)->setArguments(['namespace' => 'metadata_class_metadata'])->setAutowired(true); $builder->addDefinition('document.factory', new DI\Definitions\ServiceDefinition())->setType(Documents\DocumentFactory::class); $attributeDriver = $builder->addDefinition('document.mapping.attributeDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\AttributeDriver::class)->setArguments(['paths' => array_values($configuration->documents->mapping)])->addSetup('addExcludePaths', [$configuration->documents->excludePaths])->addTag(self::DRIVER_TAG)->setAutowired(false); $mappingDriver = $builder->addDefinition('document.mapping.mappingDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\MappingDriverChain::class);
Test for mutants (8.2, ubuntu-latest): src/DI/MetadataExtension.php#L102
Escaped Mutant for Mutator "UnwrapArrayValues": --- Original +++ New @@ @@ */ $metadataCache = $builder->addDefinition($this->prefix('document.cache'), new DI\Definitions\ServiceDefinition())->setType(Caching\Cache::class)->setArguments(['namespace' => 'metadata_class_metadata'])->setAutowired(false); $builder->addDefinition('document.factory', new DI\Definitions\ServiceDefinition())->setType(Documents\DocumentFactory::class); - $attributeDriver = $builder->addDefinition('document.mapping.attributeDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\AttributeDriver::class)->setArguments(['paths' => array_values($configuration->documents->mapping)])->addSetup('addExcludePaths', [$configuration->documents->excludePaths])->addTag(self::DRIVER_TAG)->setAutowired(false); + $attributeDriver = $builder->addDefinition('document.mapping.attributeDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\AttributeDriver::class)->setArguments(['paths' => $configuration->documents->mapping])->addSetup('addExcludePaths', [$configuration->documents->excludePaths])->addTag(self::DRIVER_TAG)->setAutowired(false); $mappingDriver = $builder->addDefinition('document.mapping.mappingDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\MappingDriverChain::class); $builder->addDefinition('document.mapping.classMetadataFactory', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\ClassMetadataFactory::class)->setArguments(['driver' => $mappingDriver, 'cache' => $metadataCache]); foreach ($configuration->documents->mapping as $namespace => $path) {
Test for mutants (8.2, ubuntu-latest): src/DI/MetadataExtension.php#L106
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ */ $metadataCache = $builder->addDefinition($this->prefix('document.cache'), new DI\Definitions\ServiceDefinition())->setType(Caching\Cache::class)->setArguments(['namespace' => 'metadata_class_metadata'])->setAutowired(false); $builder->addDefinition('document.factory', new DI\Definitions\ServiceDefinition())->setType(Documents\DocumentFactory::class); - $attributeDriver = $builder->addDefinition('document.mapping.attributeDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\AttributeDriver::class)->setArguments(['paths' => array_values($configuration->documents->mapping)])->addSetup('addExcludePaths', [$configuration->documents->excludePaths])->addTag(self::DRIVER_TAG)->setAutowired(false); + $attributeDriver = $builder->addDefinition('document.mapping.attributeDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\AttributeDriver::class)->setArguments(['paths' => array_values($configuration->documents->mapping)])->addSetup('addExcludePaths', [$configuration->documents->excludePaths])->addTag(self::DRIVER_TAG)->setAutowired(true); $mappingDriver = $builder->addDefinition('document.mapping.mappingDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\MappingDriverChain::class); $builder->addDefinition('document.mapping.classMetadataFactory', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\ClassMetadataFactory::class)->setArguments(['driver' => $mappingDriver, 'cache' => $metadataCache]); foreach ($configuration->documents->mapping as $namespace => $path) {
Test for mutants (8.2, ubuntu-latest): src/DI/MetadataExtension.php#L116
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ $builder->addDefinition('document.factory', new DI\Definitions\ServiceDefinition())->setType(Documents\DocumentFactory::class); $attributeDriver = $builder->addDefinition('document.mapping.attributeDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\AttributeDriver::class)->setArguments(['paths' => array_values($configuration->documents->mapping)])->addSetup('addExcludePaths', [$configuration->documents->excludePaths])->addTag(self::DRIVER_TAG)->setAutowired(false); $mappingDriver = $builder->addDefinition('document.mapping.mappingDriver', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\Driver\MappingDriverChain::class); - $builder->addDefinition('document.mapping.classMetadataFactory', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\ClassMetadataFactory::class)->setArguments(['driver' => $mappingDriver, 'cache' => $metadataCache]); + $builder->addDefinition('document.mapping.classMetadataFactory', new DI\Definitions\ServiceDefinition())->setType(Documents\Mapping\ClassMetadataFactory::class)->setArguments(['cache' => $metadataCache]); foreach ($configuration->documents->mapping as $namespace => $path) { if (!is_dir($path)) { throw new Exceptions\InvalidState(sprintf('Given mapping path "%s" does not exist', $path));
Test for mutants (8.2, ubuntu-latest): src/Documents/DocumentFactory.php#L85
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ $metadata = $this->classMetadataFactory->getMetadataFor($document); if (!$metadata->isInheritanceTypeNone()) { $discriminatorColumnSettings = $metadata->getDiscriminatorColumn(); - if ($discriminatorColumnSettings === null || !array_key_exists('name', $discriminatorColumnSettings) || !array_key_exists('type', $discriminatorColumnSettings)) { + if ($discriminatorColumnSettings === null && !array_key_exists('name', $discriminatorColumnSettings) || !array_key_exists('type', $discriminatorColumnSettings)) { throw new Exceptions\InvalidState(sprintf('Discriminator column configuration is missing on class: "%s"', $metadata->getName())); } $discriminatorColumn = $discriminatorColumnSettings['name'];
Test for mutants (8.2, ubuntu-latest): src/Documents/DocumentFactory.php#L85
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ $metadata = $this->classMetadataFactory->getMetadataFor($document); if (!$metadata->isInheritanceTypeNone()) { $discriminatorColumnSettings = $metadata->getDiscriminatorColumn(); - if ($discriminatorColumnSettings === null || !array_key_exists('name', $discriminatorColumnSettings) || !array_key_exists('type', $discriminatorColumnSettings)) { + if (($discriminatorColumnSettings === null || !array_key_exists('name', $discriminatorColumnSettings)) && !array_key_exists('type', $discriminatorColumnSettings)) { throw new Exceptions\InvalidState(sprintf('Discriminator column configuration is missing on class: "%s"', $metadata->getName())); } $discriminatorColumn = $discriminatorColumnSettings['name'];
Test for mutants (8.2, ubuntu-latest): src/Documents/DocumentFactory.php#L117
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ if (!array_key_exists($type, $discriminatorMap)) { throw new Exceptions\InvalidArgument(sprintf('Missing discriminator map record for key: "%s" in class: "%s"', $type, $metadata->getName())); } - if ($metadata->isRootDocument() || $metadata->isAbstract()) { + if ($metadata->isRootDocument() && $metadata->isAbstract()) { $document = $discriminatorMap[$type]; } elseif ($metadata->getDiscriminatorValue() !== $type) { throw new Exceptions\InvalidArgument(sprintf('Provided document class is different than discriminator value: "%s"', $metadata->getName()));
Test for mutants (8.2, ubuntu-latest): src/Documents/Mapping/ClassMetadata.php#L177
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ */ public function isInheritanceTypeSingleTable() : bool { - return $this->inheritanceType === self::INHERITANCE_TYPE_SINGLE_TABLE; + return $this->inheritanceType !== self::INHERITANCE_TYPE_SINGLE_TABLE; } /** * @param array<string, string>|null $definition
Test for mutants (8.2, ubuntu-latest): src/Documents/Mapping/ClassMetadata.php#L233
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation": --- Original +++ New @@ @@ $this->discriminatorValue = $name; return; } - if (!(class_exists($className) || interface_exists($className))) { + if (!(!class_exists($className) || !interface_exists($className))) { throw new Exceptions\Mapping(sprintf('Document class "%s" used in the discriminator map of class "%s" does not exist.', $className, $this->name)); } $this->addSubClass($className);
Code tests (8.2, ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Publish code distribution to NPM (ubuntu-latest, 20)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: battila7/get-version-action@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Publish code distribution to NPM (ubuntu-latest, 20)
The following actions uses node12 which is deprecated and will be forced to run on node16: battila7/get-version-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Publish code distribution to NPM (ubuntu-latest, 20)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Publish code distribution to NPM (ubuntu-latest, 20)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Publish code distribution to Github packages (ubuntu-latest, 20)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: battila7/get-version-action@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Publish code distribution to Github packages (ubuntu-latest, 20)
The following actions uses node12 which is deprecated and will be forced to run on node16: battila7/get-version-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Publish code distribution to Github packages (ubuntu-latest, 20)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Publish code distribution to Github packages (ubuntu-latest, 20)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Code tests with code coverage (8.2, ubuntu-latest)
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/.

Artifacts

Produced during runtime
Name Size
Logs - Mutations Expired
698 KB
js-dist Expired
112 KB