Skip to content

Commit

Permalink
fix(#2297): Add missing default parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilian Zumbansen committed Jun 17, 2024
1 parent 183e686 commit 105dd5e
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
use OpenApi\Annotations\OpenApi;
use OpenApi\Context;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Attribute\MapRequestPayload;
use Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestPayloadValueResolver;
use Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata;
use Symfony\Component\PropertyInfo\Type;

Expand Down Expand Up @@ -52,7 +54,17 @@ public function testDescribeHandlesArrayParameterAndRegistersCorrectSchema(): vo
false,
null,
false,
[new MapRequestPayload(SomeObject::class)]
[
/* @phpstan-ignore-next-line can be removed with Symfony 7.1 integration */
new MapRequestPayload(
null,
[],
null,
RequestPayloadValueResolver::class,
Response::HTTP_UNPROCESSABLE_ENTITY,
SomeObject::class
),
]
);

$operation = $this->createMock(Operation::class);
Expand Down

0 comments on commit 105dd5e

Please sign in to comment.