Skip to content

Commit

Permalink
fix: cs
Browse files Browse the repository at this point in the history
  • Loading branch information
DjordyKoert committed Dec 14, 2023
1 parent 73b3821 commit 50a3e04
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Annotation/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ final class Model extends Attachable
public $serializationContext;

/**
* @param mixed[] $properties
* @param string[] $groups
* @param mixed[] $options
* @param mixed[] $properties
* @param string[] $groups
* @param mixed[] $options
* @param array<string, mixed> $serializationContext
*/
public function __construct(
Expand Down
1 change: 0 additions & 1 deletion Model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public function __construct(Type $type, array $groups = null, array $options = n
if (null !== $groups) {
$this->serializationContext[AbstractNormalizer::GROUPS] = $groups;
}

}

/**
Expand Down
4 changes: 3 additions & 1 deletion Tests/Functional/Controller/NameConverterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
namespace Nelmio\ApiDocBundle\Tests\Functional\Controller;

use Nelmio\ApiDocBundle\Annotation\Model;
use OpenApi\Attributes as OA;
use Nelmio\ApiDocBundle\Tests\Functional\Entity\EntityThroughNameConverter;
use OpenApi\Attributes as OA;
use Symfony\Component\Routing\Annotation\Route;

if (PHP_VERSION_ID < 80100) {
Expand All @@ -17,9 +17,11 @@ class NameConverterController
{
/**
* @Route("/name_converter_context", methods={"GET"})
*
* @OA\Response(
* response="200",
* description="",
*
* @Model(type=EntityThroughNameConverter::class, serializationContext={"secret_name_converter_value"=true})
* )
*/
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/NameConverterFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function normalize(string $propertyName, string $class = null, string $fo
return $propertyName;
}

return 'name_converter_context_' . $propertyName;
return 'name_converter_context_'.$propertyName;
}

public function denormalize(string $propertyName, string $class = null, string $format = null, array $context = []): string
Expand Down

0 comments on commit 50a3e04

Please sign in to comment.