From 36850102ac750797f1acabe0c753d17f233a87c6 Mon Sep 17 00:00:00 2001 From: soyuka Date: Fri, 29 Dec 2023 17:24:25 +0100 Subject: [PATCH] style: latest cs-fixer --- src/JsonApi/Serializer/ConstraintViolationListNormalizer.php | 2 +- .../NotExposedOperationResourceMetadataCollectionFactory.php | 2 +- tests/Behat/DoctrineContext.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/JsonApi/Serializer/ConstraintViolationListNormalizer.php b/src/JsonApi/Serializer/ConstraintViolationListNormalizer.php index 148119dd57c..90c87a881cf 100644 --- a/src/JsonApi/Serializer/ConstraintViolationListNormalizer.php +++ b/src/JsonApi/Serializer/ConstraintViolationListNormalizer.php @@ -22,7 +22,7 @@ use Symfony\Component\Validator\ConstraintViolationListInterface; /** - * Converts {@see \Symfony\Component\Validator\ConstraintViolationListInterface} to a JSON API error representation. + * Converts {@see ConstraintViolationListInterface} to a JSON API error representation. * * @author Héctor Hurtarte */ diff --git a/src/Metadata/Resource/Factory/NotExposedOperationResourceMetadataCollectionFactory.php b/src/Metadata/Resource/Factory/NotExposedOperationResourceMetadataCollectionFactory.php index bf3afc2bec9..cf70ce228e4 100644 --- a/src/Metadata/Resource/Factory/NotExposedOperationResourceMetadataCollectionFactory.php +++ b/src/Metadata/Resource/Factory/NotExposedOperationResourceMetadataCollectionFactory.php @@ -60,7 +60,7 @@ public function create(string $resourceClass): ResourceMetadataCollection foreach ($resourceMetadataCollection as $resource) { $operations = $resource->getOperations(); - /** @var \ApiPlatform\Metadata\HttpOperation $operation */ + /** @var HttpOperation $operation */ foreach ($operations as $operation) { // An item operation has been found, nothing to do anymore in this factory if ((HttpOperation::METHOD_GET === $operation->getMethod() && !$operation instanceof CollectionOperationInterface) || ($operation->getExtraProperties()['is_legacy_resource_metadata'] ?? false)) { diff --git a/tests/Behat/DoctrineContext.php b/tests/Behat/DoctrineContext.php index 17cc076c3e7..8b5db33a3b6 100644 --- a/tests/Behat/DoctrineContext.php +++ b/tests/Behat/DoctrineContext.php @@ -2168,7 +2168,7 @@ public function thereIsADummyWithSubEntity(string $strId, string $name): void public function thereIsAGroupWithUuidAndNUsers(string $uuid, int $nbUsers): void { $group = new Group(); - $group->setUuid(\Symfony\Component\Uid\Uuid::fromString($uuid)); + $group->setUuid(SymfonyUuid::fromString($uuid)); $this->manager->persist($group);