Skip to content

missing type object in phpdoc ItemDataProviderInterface::getItem() #4152

Description

@julienbornstein

API Platform version(s) affected: all


Description
ItemDataProviderInterface::getItem() $id argument could also be an object

eg: an item with an identifier of type Ramsey\Uuid\UuidInterface


How to reproduce

I created a dummy project so you can check: https://github.com/julienbornstein/api-uuid/blob/master/src/DataProvider/FooDataProvider.php#L16

Run the project then do a GET request on /foos/:id

eg: http://127.0.0.1:8000/foos/3fa85f64-5717-4562-b3fc-2c963f66afa6


Possible Solution
Updating the phpdoc. I created a PR for that #4039

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions