We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ec0e25 commit f948a35Copy full SHA for f948a35
1 file changed
src/Database/Database.php
@@ -5233,7 +5233,7 @@ public function increaseDocumentAttribute(
5233
}
5234
5235
5236
- if ($max && ($document->getAttribute($attribute) + $value > $max)) {
+ if (!\is_null($max) && ($document->getAttribute($attribute) + $value > $max)) {
5237
throw new LimitException('Attribute value exceeds maximum limit: ' . $max);
5238
5239
0 commit comments