File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5149,7 +5149,7 @@ public function increaseDocumentAttribute(
51495149 int |float |null $ max = null
51505150 ): Document {
51515151 if ($ value <= 0 ) { // Can be a float
5152- throw new DatabaseException ('Value must be numeric and greater than 0 ' );
5152+ throw new \ InvalidArgumentException ('Value must be numeric and greater than 0 ' );
51535153 }
51545154
51555155 $ collection = $ this ->silent (fn () => $ this ->getCollection ($ collection ));
@@ -5246,7 +5246,7 @@ public function decreaseDocumentAttribute(
52465246 int |float |null $ min = null
52475247 ): Document {
52485248 if ($ value <= 0 ) { // Can be a float
5249- throw new DatabaseException ('Value must be numeric and greater than 0 ' );
5249+ throw new \ InvalidArgumentException ('Value must be numeric and greater than 0 ' );
52505250 }
52515251
52525252 $ collection = $ this ->silent (fn () => $ this ->getCollection ($ collection ));
You can’t perform that action at this time.
0 commit comments