Skip to content

Commit

Permalink
fix(#2300): fix missing context param UuidPropertyDescriber::describe…
Browse files Browse the repository at this point in the history
…() (#2302)

| Q | A |

|---------------|---------------------------------------------------------------------------------------------------------------------------|
| Bug fix? | yes |
| New feature? | yes/no <!-- please update src/**/CHANGELOG.md files -->
|
| Deprecations? | yes/no <!-- please update UPGRADE-*.md and
src/**/CHANGELOG.md files --> |
| Issues | Fix #2300 <!-- prefix each issue number with "Fix #", no need
to create an issue if none exists, explain below instead --> |

Fixes deprecation warning from missing `context` parameter on
`UuidPropertyDescriber::describe()`
  • Loading branch information
DjordyKoert authored Jun 19, 2024
1 parent 221a1fe commit 8f43de5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/PropertyDescriber/UuidPropertyDescriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@

final class UuidPropertyDescriber implements PropertyDescriberInterface
{
public function describe(array $types, OA\Schema $property, ?array $groups = null, ?OA\Schema $schema = null)
/**
* @param array<string, mixed> $context Context options for describing the property
*/
public function describe(array $types, OA\Schema $property, ?array $groups = null, ?OA\Schema $schema = null, array $context = [])
{
$property->type = 'string';
$property->format = 'uuid';
Expand Down

0 comments on commit 8f43de5

Please sign in to comment.