Skip to content

Array sizes are inconsistent #7

@Evgeny1973

Description

@Evgeny1973

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions