amrnn90 / laravel-cursor-paginator

Cursor pagination for Laravel
MIT License
18 stars 6 forks source link

method_exists null in modelsEqual #32

Open devjagseergill opened 2 years ago

devjagseergill commented 2 years ago

PHP 8.0 error when there is no result

QueryMeta.php fn modelsEqual Line number 106

protected function modelsEqual($first, $second)
    {
        if (method_exists($first, 'is')) {
            return $first->is($second);
        }
        return $first == $second;
    }