Skip to content

Return correct IRI from the /me endpoint if a Get operation exists #1399

Return correct IRI from the /me endpoint if a Get operation exists

Return correct IRI from the /me endpoint if a Get operation exists #1399

Triggered via push June 18, 2025 16:09
Status Failure
Total duration 5m 33s
Artifacts 9
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

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

2 errors and 10 warnings
PHP-CS-Fixer (PHP 8.4)
Process completed with exit code 8.
Behat (Symfony 7.3) (PHP 8.4)
Process completed with exit code 1.
PHPUnit (Symfony 7.3) (PHP 8.4): src/Entity/User/AbstractUser.php#L203
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#L152
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.3 Expired
7.88 KB
sha256:42696a9c43657ec63f9dc0c3d94eacc9fcc5e2ee4187f8873630502b8a07b706
behat-logs-php8.4 Expired
7.94 KB
sha256:579a780ff4c16f2c7e35ee06d803fe2e0c8a44222aacda63f9ff85adf70d9bae
behat-logs-php8.4-lowest-deps Expired
6.58 KB
sha256:39d51c6d704a7ba64cfc41ec647f969a6d2f8156f575ed39b90cdc0fe2e2d88d
behat-logs-php8.4-symfony7.4 Expired
8.9 KB
sha256:9f79498d88db416499c4e3ac3d437bd85a28de4efce964f4570d179a2d8af33e
infection-logs-php8.4 Expired
3.9 KB
sha256:b1eb5d0863683d57cfc326a5313f3a34d3e52dd56b896c3aef58f5713cc91808
phpunit-logs-php8.3 Expired
3.7 KB
sha256:631c2895e2fff08c21b6d5934107d52b38645c58993e9299bd4a3c6a23467c95
phpunit-logs-php8.4 Expired
624 KB
sha256:1777df2c166f769d2015112fa6d124f002186b8695e9d4289b57f04c45ed70cc
phpunit-logs-php8.4-lowest-deps Expired
3.69 KB
sha256:11127b3d680e3b19cac97385be310bf6d5b6150cb2beb196332437486c45463a
phpunit-logs-php8.4-symfony7.4 Expired
3.68 KB
sha256:f6bd745b90807085bdcba45448f001bacc182f23cfdbe571aea7072c26bcc197