Error:
Zend\Db\Sql\Select::limit expects parameter to be numeric, "NULL" given
Current code:
$select->limit(($limit === null ? null : 1 * $limit));
$select->offset(($offset === null ? null : 1 * $offset));
Fix:
if ($limit !== null) {
$select->limit(1 * $limit);
}
if ($offset !== null) {
$select->offset(1 * $offset);
}
That makes the thing work again.