diff --git a/Database/ActiveRecord.php b/Database/ActiveRecord.php index c61ba7f6..1660a9cf 100644 --- a/Database/ActiveRecord.php +++ b/Database/ActiveRecord.php @@ -52,7 +52,7 @@ class ActiveRecord extends BaseActiveRecord */ public function increment(string $column, int $value): bool|ActiveRecord { - if (!$this->mathematics([$column => $value], '-')) { + if (!$this->mathematics([$column => $value], '+')) { return false; } $this->{$column} += $value;