Skip to content

Commit

Permalink
Fix RequestBody::content type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
DerManoMann committed Nov 3, 2023
1 parent da8463f commit 5447113
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Annotations/RequestBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class RequestBody extends AbstractAnnotation
* The key is a media type or media type range and the value describes it. For requests that match multiple keys,
* only the most specific key is applicable. e.g. text/plain overrides text/*.
*
* @var array<MediaType>|MediaType|JsonContent|XmlContent|Attachable
* @var array<MediaType|MediaType|JsonContent|XmlContent|Attachable>
*/
public $content = Generator::UNDEFINED;

Expand Down
2 changes: 1 addition & 1 deletion src/Attributes/RequestBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class RequestBody extends OA\RequestBody
{
/**
* @param string|class-string|object|null $ref
* @param array<MediaType>|MediaType|JsonContent|XmlContent|Attachable|null $content
* @param array<MediaType|MediaType|JsonContent|XmlContent|Attachable>|null $content
* @param array<string,mixed>|null $x
* @param Attachable[]|null $attachables
*/
Expand Down

0 comments on commit 5447113

Please sign in to comment.