You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure I agree with the solution. $count is the number of elements you expect to be returned. I think an error message when requesting too many items is more helpful than magically getting fewer item than requested.
If you say that the error message is more helpful. I suggest to make it visible that the function can throw an error and add a more user friendly message.
Example in Laravel:
if ($requested > $count) {
throw new InvalidArgumentException(
"You requested {$requested} items, but there are only {$count} items available."
);
}
Description
Error:
Source
fix would be:
Your setup
kirby cms 4.beta1
The text was updated successfully, but these errors were encountered: