ttskch / TtskchPaginatorBundle

The most thin, simple and customizable paginator bundle for Symfony.
https://ttskchpaginatorbundle.herokuapp.com
MIT License
11 stars 4 forks source link

Array sizes are inconsistent #7

Open Evgeny1973 opened 3 months ago

Evgeny1973 commented 3 months ago

Symfony 7.1, php 8.2.

I'm getting an error on the array Array sizes are inconsistent

$result = $qb
            ->executeQuery()
            ->fetchAllAssociative();

        $this->paginator->initialize(
            new ArraySlicer($result),
            new ArrayCounter($result),
            new Criteria('created_at')
        );

        return $this->paginator->getSlice();

Array: image It works fine in another similar place, but here for some reason it doesn't. What went wrong?

ttskch commented 2 months ago

@Evgeny1973 Sorry for my very late reply. Could you please provide the complete reproducer?