Skip to content

Commit

Permalink
fix(2324): remove ProcessorInterface usage (#2332)
Browse files Browse the repository at this point in the history
| Q | A |

|---------------|---------------------------------------------------------------------------------------------------------------------------|
| Bug fix? | yes/no |
| New feature? | yes/no <!-- please update src/**/CHANGELOG.md files -->
|
| Deprecations? | yes/no <!-- please update UPGRADE-*.md and
src/**/CHANGELOG.md files --> |
| Issues        | Fix #2324 |

Fixes deprecation message for using deprecated
`OpenApi\Processors\ProcessorInterface`
  • Loading branch information
DjordyKoert committed Aug 8, 2024
1 parent 3162c1d commit fbb94eb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/ApiDocGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
use OpenApi\Analysis;
use OpenApi\Annotations\OpenApi;
use OpenApi\Generator;
use OpenApi\Processors\ProcessorInterface;
use Psr\Cache\CacheItemPoolInterface;
use Psr\Log\LoggerAwareTrait;

Expand Down Expand Up @@ -146,7 +145,7 @@ public function generate(): OpenApi
*
* @param Generator $generator The generator instance to get the standard processors from
*
* @return array<ProcessorInterface|callable> The array of processors
* @return array<callable> The array of processors
*/
private function getProcessors(Generator $generator): array
{
Expand Down
3 changes: 1 addition & 2 deletions src/Processor/MapQueryStringProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use OpenApi\Analysis;
use OpenApi\Annotations as OA;
use OpenApi\Generator;
use OpenApi\Processors\ProcessorInterface;
use Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata;

/**
Expand All @@ -27,7 +26,7 @@
*
* @see SymfonyMapQueryStringDescriber
*/
final class MapQueryStringProcessor implements ProcessorInterface
final class MapQueryStringProcessor
{
public function __invoke(Analysis $analysis): void
{
Expand Down
3 changes: 1 addition & 2 deletions src/Processor/MapRequestPayloadProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use OpenApi\Analysis;
use OpenApi\Annotations as OA;
use OpenApi\Generator;
use OpenApi\Processors\ProcessorInterface;
use Symfony\Component\HttpKernel\Attribute\MapRequestPayload;
use Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata;

Expand All @@ -28,7 +27,7 @@
*
* @see SymfonyMapRequestPayloadDescriber
*/
final class MapRequestPayloadProcessor implements ProcessorInterface
final class MapRequestPayloadProcessor
{
public function __invoke(Analysis $analysis): void
{
Expand Down
3 changes: 1 addition & 2 deletions src/Processor/NullablePropertyProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@
use OpenApi\Analysis;
use OpenApi\Annotations as OA;
use OpenApi\Generator;
use OpenApi\Processors\ProcessorInterface;

/**
* Processor to clean up the generated OpenAPI documentation for nullable properties.
*/
final class NullablePropertyProcessor implements ProcessorInterface
final class NullablePropertyProcessor
{
public function __invoke(Analysis $analysis): void
{
Expand Down

0 comments on commit fbb94eb

Please sign in to comment.