Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Rinvex\Repository\Repositories\EloquentRepository::count() must be of the type integer, string returned #182

Open
xiatian opened this issue Nov 5, 2018 · 0 comments

Comments

@xiatian
Copy link

xiatian commented Nov 5, 2018

public function count($columns = '*'): int
{
return $this->executeCallback(get_called_class(), FUNCTION, func_get_args(), function () use ($columns) {
return $this->prepareQuery($this->createModel())->count($columns);
});
}

because redis cache server always return string value,so a numeric type conversion should be added.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant