Skip to content

CS Fixes

CS Fixes #1423

Triggered via push September 19, 2025 12:42
Status Failure
Total duration 5m 15s
Artifacts 5

ci.yml

on: push
Matrix: behat-lowest-deps
Matrix: behat-symfony-next
Matrix: behat
Matrix: php-cs-fixer
Matrix: phpunit-lowest-deps
Matrix: phpunit-symfony-next
Matrix: phpunit
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 14 warnings
PHPUnit (Symfony 7.3) (PHP 8.3)
Process completed with exit code 2.
PHPUnit (Symfony 7.3) (PHP 8.3)
Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires php >=8.4 but your php version (8.3.25) does not satisfy that requirement.
Behat (Symfony 7.3) (PHP 8.3)
Process completed with exit code 2.
Behat (Symfony 7.3) (PHP 8.3)
Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires php >=8.4 but your php version (8.3.25) does not satisfy that requirement.
PHPUnit (Symfony NEXT 7.4) (PHP 8.4)
Process completed with exit code 255.
Behat (Symfony NEXT 7.4) (PHP 8.4)
Process completed with exit code 255.
Behat (Symfony ^7.2) (PHP 8.4) (lowest dependencies)
Process completed with exit code 1.
Behat (Symfony 7.3) (PHP 8.4)
Process completed with exit code 1.
PHPUnit (Symfony 7.3) (PHP 8.3)
No files were found with the provided path: build/logs/phpunit. No artifacts will be uploaded.
Behat (Symfony 7.3) (PHP 8.3)
No files were found with the provided path: build/logs/behat. No artifacts will be uploaded.
PHPUnit (Symfony NEXT 7.4) (PHP 8.4)
No files were found with the provided path: build/logs/phpunit. No artifacts will be uploaded.
Behat (Symfony NEXT 7.4) (PHP 8.4)
No files were found with the provided path: build/logs/behat. No artifacts will be uploaded.
PHPUnit (Symfony 7.3) (PHP 8.4): src/Entity/User/AbstractUser.php#L207
Escaped Mutant for Mutator "IfNegation": @@ @@ public function setPlainPassword(?string $plainPassword): self { $this->plainPassword = $plainPassword; - if ($plainPassword) { + if (!$plainPassword) { // Needs to update mapped field to trigger update event which will encode the plain password $this->passwordUpdatedAt = new \DateTime(); }
PHPUnit (Symfony 7.3) (PHP 8.4): src/Entity/User/AbstractUser.php#L156
Escaped Mutant for Mutator "IfNegation": @@ @@ public function setEmailAddress(?string $emailAddress): self { $this->emailAddress = $emailAddress; - if ($emailAddress) { + if (!$emailAddress) { $this->emailLastUpdatedAt = new \DateTime(); } return $this;
PHPUnit (Symfony 7.3) (PHP 8.4): src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L79
Escaped Mutant for Mutator "SpreadAssignment": @@ @@ * @var Operation $oldOperation */ foreach ($oldOperations as $key => $oldOperation) { - $subRoutePrefixParts = [...$routePrefixParts]; + $subRoutePrefixParts = $routePrefixParts; if ($currentRoutePrefix = $oldOperation->getRoutePrefix()) { $subRoutePrefixParts[] = trim($currentRoutePrefix, '/'); $subRoutePrefix = '/' . implode('/', $subRoutePrefixParts);
PHPUnit (Symfony 7.3) (PHP 8.4): src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L79
Escaped Mutant for Mutator "SpreadOneItem": @@ @@ * @var Operation $oldOperation */ foreach ($oldOperations as $key => $oldOperation) { - $subRoutePrefixParts = [...$routePrefixParts]; + $subRoutePrefixParts = [[...$routePrefixParts][0]]; if ($currentRoutePrefix = $oldOperation->getRoutePrefix()) { $subRoutePrefixParts[] = trim($currentRoutePrefix, '/'); $subRoutePrefix = '/' . implode('/', $subRoutePrefixParts);
PHPUnit (Symfony 7.3) (PHP 8.4): src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L78
Escaped Mutant for Mutator "Foreach_": @@ @@ * @var string $key * @var Operation $oldOperation */ - foreach ($oldOperations as $key => $oldOperation) { + foreach ([] as $key => $oldOperation) { $subRoutePrefixParts = [...$routePrefixParts]; if ($currentRoutePrefix = $oldOperation->getRoutePrefix()) { $subRoutePrefixParts[] = trim($currentRoutePrefix, '/');
PHPUnit (Symfony 7.3) (PHP 8.4): src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L66
Escaped Mutant for Mutator "SpreadAssignment": @@ @@ $resources = []; /** @var ApiResource $resourceMetadatum */ foreach ($resourceMetadata as $i => $resourceMetadatum) { - $finalRoutePrefixParts = [...$routePrefixParts]; + $finalRoutePrefixParts = $routePrefixParts; if ($currentRoutePrefix = $resourceMetadatum->getRoutePrefix()) { $finalRoutePrefixParts[] = trim($currentRoutePrefix, '/'); }
PHPUnit (Symfony 7.3) (PHP 8.4): src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L66
Escaped Mutant for Mutator "SpreadOneItem": @@ @@ $resources = []; /** @var ApiResource $resourceMetadatum */ foreach ($resourceMetadata as $i => $resourceMetadatum) { - $finalRoutePrefixParts = [...$routePrefixParts]; + $finalRoutePrefixParts = [[...$routePrefixParts][0]]; if ($currentRoutePrefix = $resourceMetadatum->getRoutePrefix()) { $finalRoutePrefixParts[] = trim($currentRoutePrefix, '/'); }
PHPUnit (Symfony 7.3) (PHP 8.4): src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L65
Escaped Mutant for Mutator "Foreach_": @@ @@ { $resources = []; /** @var ApiResource $resourceMetadatum */ - foreach ($resourceMetadata as $i => $resourceMetadatum) { + foreach ([] as $i => $resourceMetadatum) { $finalRoutePrefixParts = [...$routePrefixParts]; if ($currentRoutePrefix = $resourceMetadatum->getRoutePrefix()) { $finalRoutePrefixParts[] = trim($currentRoutePrefix, '/');
PHPUnit (Symfony 7.3) (PHP 8.4): src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L49
Escaped Mutant for Mutator "IfNegation": @@ @@ // underscores for core resources $reflection = new \ReflectionClass($resourceClass); $namespace = $reflection->getNamespaceName(); - if (preg_match("/Silverback\\\\ApiComponentsBundle\\\\(?!Test)[\\w]+/", $namespace)) { + if (!preg_match("/Silverback\\\\ApiComponentsBundle\\\\(?!Test)[\\w]+/", $namespace)) { $routePrefixParts[] = '_'; } }
PHPUnit (Symfony 7.3) (PHP 8.4): src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L43
Escaped Mutant for Mutator "ElseIfNegation": @@ @@ $routePrefixParts = []; if (is_subclass_of($resourceClass, AbstractComponent::class)) { $routePrefixParts[] = 'component'; - } elseif (is_subclass_of($resourceClass, AbstractPageData::class)) { + } elseif (!is_subclass_of($resourceClass, AbstractPageData::class)) { $routePrefixParts[] = 'page_data'; } else { // underscores for core resources

Artifacts

Produced during runtime
Name Size Digest
behat-logs-php8.4 Expired
9.29 KB
sha256:5533fc35e9c3a6a86eb58d202971e66c45e82f4e3eefb26ccff45b97db374b8a
behat-logs-php8.4-lowest-deps Expired
6.88 KB
sha256:6bc96c0de777411c7fe8f04e80404f6867fcc2669c9a7f33ab9a4ad24a906178
infection-logs-php8.4 Expired
4.09 KB
sha256:51955ba0ccaf99944566c4775b8bed9800a9d3780e87ac4a8ed321c8bf95c82f
phpunit-logs-php8.4 Expired
629 KB
sha256:aaf96c5849e42b430cf4c939b6cf5ce5ba587784e07d0a72c0b79225366c3db0
phpunit-logs-php8.4-lowest-deps Expired
3.69 KB
sha256:daa3cdfe5474dcb1748ab2bc89f86b10aa7ffb9f7b257fe6d7febf0355f6c575