Skip to content

Commit

Permalink
Try removing @var annotation from child class
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazek-honza committed Nov 12, 2024
1 parent 70503e8 commit 5636902
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
24 changes: 4 additions & 20 deletions docs/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,33 +36,17 @@
"description": "List of users",
"type": "array",
"items": {
"$ref": "#/components/schemas/User"
"nullable": true
},
"additionalProperties": {
"nullable": true
}
},
"totalCount": {
"type": "integer"
}
},
"type": "object"
},
"User": {
"required": [
"id",
"name",
"email"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"email": {
"type": "string"
}
},
"type": "object"
}
}
}
Expand Down
1 change: 0 additions & 1 deletion src/Response/UserResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
readonly class UserResponse extends PaginatedResponse
{
public function __construct(
/** @var list<User> $items */
#[Property(description: "List of users")]
public array $items,
int $totalCount,
Expand Down

0 comments on commit 5636902

Please sign in to comment.