BabDev / Pagerfanta

Pagination library for PHP applications with support for several data providers
Other
381 stars 170 forks source link

Add Template Parameter to AdapterInterface #37

Closed MarkPedron closed 2 years ago

MarkPedron commented 2 years ago

The QueryAdapter has the queried type annotated as template parameter, which allows more precise annotations (e.g. @return QueryAdapter<MyEntity).

It would be nice if the implemented AdapterInterface would have a template parameter as well.

mbabker commented 2 years ago

The annotations have been added in. If you want to pull the latest dev build of the package(s) you're using before I tag things just to make sure it's not doing anything unexpected, that'd be great. Otherwise, I'll tag releases later on in the week.

MarkPedron commented 2 years ago

Thank you for the immediate response! If I find something unexpected I will report.