Open kasali opened 5 days ago
I would try to clear cache
I've tried that and deleted the cache directory and still have this issue @garak
What is $paginator? Can you see the service in console debug:container?
$paginator
is an instance of the KnpPaginatorBundle's pagination service (PaginatorInterface) :
public fucntion(PaginatorInterface $paginator){
......
}
[9 ] knp_paginator
[10] Knp\Component\Pager\ArgumentAccess\RequestArgumentAccess
[11] knp_paginator.subscriber.paginate
[12] knp_paginator.subscriber.sortable
[13] knp_paginator.subscriber.filtration
[14] knp_paginator.subscriber.sliding_pagination
[15] knp_paginator.helper.processor
[16] knp_paginator.twig.extension.pagination
[17] Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationRuntime
What's the content of PaginatorProxy9cc2a8f.php at the given line?
it's underlining the return and saying ; espected :
public function paginate(mixed $target, int $page = 1, ?int $limit = null, array $options = []): \Knp\Component\Pager\Pagination\PaginationInterface
{
if (isset($this->lazyObjectState)) {
return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->paginate(...\func_get_args());
}
return throw new \BadMethodCallException('Cannot forward abstract method "Knp\Component\Pager\PaginatorInterface::paginate()".');
}
Do you see any syntax error here?
No but it's underlining the "return" and I see ; expected in the tab problem of vscode
On Fri, Sep 20, 2024, 10:37 Massimiliano Arione @.***> wrote:
Do you see any syntax error here?
— Reply to this email directly, view it on GitHub https://github.com/KnpLabs/KnpPaginatorBundle/issues/807#issuecomment-2363411037, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI36Y5VIR2ZEUNMLUZGFE2DZXP3GNAVCNFSM6AAAAABOPXWFAOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRTGQYTCMBTG4 . You are receiving this because you authored the thread.Message ID: @.***>
Support Question
The pagination is empty and i'm getting this error in problem tab of the vs terminal [{ "resource": "projectroot/var/cache/dev/Container8ruiQDM/PaginatorProxy9cc2a8f.php", "owner": "_generated_diagnostic_collectionname#6", "severity": 8, "message": "';' expected.", "source": "php", "startLineNumber": 28, "startColumn": 15, "endLineNumber": 28, "endColumn": 15 }]. here is the result of bin/console debug:config knp_paginator:
Current configuration for extension with alias "knp_paginator"
controller :
what i'm missing here