Skip to content

Fix symfony deprecation #1378

Fix symfony deprecation

Fix symfony deprecation #1378

Triggered via pull request August 14, 2024 15:42
Status Failure
Total duration 3m 49s
Artifacts

continuous-integration.yml

on: pull_request
run  /  Generate test matrix
2s
run / Generate test matrix
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
Fit to window
Zoom out
Zoom in

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/nucleos-doctrine-extensions/nucleos-doctrine-extensions/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/nucleos-doctrine-extensions/nucleos-doctrine-extensions/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 / Coding Standards (8.3)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
run / Static Code Analysis (8.3)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
run / Code Coverage (8.3)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
run / Mutation Tests (8.3)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
run / Mutation Tests (8.3): src/EventListener/ORM/SortableListener.php#L55
Escaped Mutant for Mutator "InstanceOf_": @@ @@ } public function prePersist(PrePersistEventArgs $args): void { - if (!$args->getObject() instanceof PositionAwareInterface) { + if (!true) { return; } $this->uniquePosition($args);
run / Mutation Tests (8.3): src/EventListener/ORM/SortableListener.php#L55
Escaped Mutant for Mutator "InstanceOf_": @@ @@ } public function prePersist(PrePersistEventArgs $args): void { - if (!$args->getObject() instanceof PositionAwareInterface) { + if (!false) { return; } $this->uniquePosition($args);
run / Mutation Tests (8.3): src/EventListener/ORM/SortableListener.php#L55
Escaped Mutant for Mutator "LogicalNot": @@ @@ } public function prePersist(PrePersistEventArgs $args): void { - if (!$args->getObject() instanceof PositionAwareInterface) { + if ($args->getObject() instanceof PositionAwareInterface) { return; } $this->uniquePosition($args);
run / Mutation Tests (8.3): src/EventListener/ORM/SortableListener.php#L81
Escaped Mutant for Mutator "InstanceOf_": @@ @@ public function preRemove(PreRemoveEventArgs $args): void { $entity = $args->getObject(); - if ($entity instanceof PositionAwareInterface) { + if (false) { $this->movePosition($args->getObjectManager(), $entity, -1); } }
run / Mutation Tests (8.3): src/EventListener/ORM/UniqueActiveListener.php#L52
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ } public function prePersist(PrePersistEventArgs $args): void { - $this->uniqueActive($args); + } public function preUpdate(PreUpdateEventArgs $args): void {
run / Mutation Tests (8.3): src/EventListener/ORM/UniqueActiveListener.php#L57
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ } public function preUpdate(PreUpdateEventArgs $args): void { - $this->uniqueActive($args); + } /** * @throws MappingException
run / Mutation Tests (8.3): src/EventListener/ORM/UniqueActiveListener.php#L88
Escaped Mutant for Mutator "InstanceOf_": @@ @@ private function uniqueActive(LifecycleEventArgs $args): void { $entity = $args->getObject(); - if (!$entity instanceof UniqueActiveInterface) { + if (!false) { return; } if (!$entity->isActive()) {
run / Mutation Tests (8.3): src/Manager/ORM/BaseQueryTrait.php#L28
Escaped Mutant for Mutator "Foreach_": @@ @@ */ final protected function addOrder(QueryBuilder $builder, array $sort, string $defaultAlias, array $aliasMapping = [], string $defaultOrder = 'asc'): QueryBuilder { - foreach ($sort as $field => $order) { + foreach ([] as $field => $order) { if (\is_int($field)) { $field = $order; $order = $defaultOrder;
run / Mutation Tests (8.3): src/Manager/ORM/BaseQueryTrait.php#L34
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ $field = $order; $order = $defaultOrder; } - $this->addOrderField($builder, $defaultAlias, $field, $order, $aliasMapping); + } return $builder; }
run / Mutation Tests (8.3): src/Manager/ORM/BaseQueryTrait.php#L57
Escaped Mutant for Mutator "DecrementInteger": @@ @@ throw new InvalidArgumentException(sprintf('The fieldname "%s" cannot contain more than one dot', $field)); } // Map entity to table name - if (2 === \count($fieldSpl)) { + if (1 === \count($fieldSpl)) { [$table, $field] = $fieldSpl; foreach ($aliasMapping as $k => $v) { if ($fieldSpl[0] === $k) {
run / Lint composer.json (8.3)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
run / Test: PHP 8.2, Symfony 6.4, lowest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
run / Test: PHP 8.2, Symfony 7.0, highest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
run / Test: PHP 8.2, Symfony 7.0, lowest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
run / Test: PHP 8.3, Symfony 6.4, highest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
run / Test: PHP 8.2, Symfony 6.4, highest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
run / Test: PHP 8.3, Symfony 6.4, lowest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
run / Test: PHP 8.3, Symfony 7.0, highest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
run / Test: PHP 8.3, Symfony 7.0, lowest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/