From 262f27c15c8c155d3d8bf22bf36cc74685127fc4 Mon Sep 17 00:00:00 2001 From: Paulo Henrique Garcia Date: Fri, 15 Aug 2025 06:58:57 +0200 Subject: [PATCH] Add bool return, as it may happen In the incrementOrDecrement method, there is a flow that returns false. This is not reflected in the docblock. --- Eloquent/Model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Eloquent/Model.php b/Eloquent/Model.php index bc7a628ea..78581320b 100644 --- a/Eloquent/Model.php +++ b/Eloquent/Model.php @@ -1006,7 +1006,7 @@ public function loadMorphAvg($relation, $relations, $column) * @param string $column * @param float|int $amount * @param array $extra - * @return int + * @return int|bool */ protected function increment($column, $amount = 1, array $extra = []) { @@ -1019,7 +1019,7 @@ protected function increment($column, $amount = 1, array $extra = []) * @param string $column * @param float|int $amount * @param array $extra - * @return int + * @return int|bool */ protected function decrement($column, $amount = 1, array $extra = []) { @@ -1033,7 +1033,7 @@ protected function decrement($column, $amount = 1, array $extra = []) * @param float|int $amount * @param array $extra * @param string $method - * @return int + * @return int|bool */ protected function incrementOrDecrement($column, $amount, $extra, $method) {