-
|
Hi, Declaration of Pagerfanta\Adapter\DoctrineORMAdapter::getSlice($offset, $length) must be compatible with Pagerfanta\Adapter\AdapterInterface::getSlice(int $offset, int $length): iterable in C:\svn\galatee\api\vendor\page And Declaration of Pagerfanta\Adapter\DoctrineORMAdapter::getNbResults() must be compatible with Pagerfanta\Adapter\AdapterInterface::getNbResults(): int in C:\svn\galatee\api\vendor\pagerfanta\pagerfanta\src\Adapter\Doctrin So can you resolve it on the futur version with this code on DoctrineORMAdapter.php Just add the type of returned value (int and iterable) actually. Thank's for your futur response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Can you give the output from The In Pagerfanta 2.x, So if you're getting that error, somehow you have the 3.0 version of the interface and an incompatible class from the 2.x branch installed, which shouldn't be possible. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, Thank's again |
Beta Was this translation helpful? Give feedback.
Hi,
Thanks for your answer, I do the
composer showand i seepagerfanta/pagerfanta v2.3.0 Pagination for PHP, so that's was the problem.But in my composer.json i d'ont install
pagerfanta/pagerfantajust your librairy in this version"babdev/pagerfanta-bundle": "3.0.2"can you tell me how to update the version of pagerfanta/pagerfanta in 3.0.2 please?Thank's again