modify
This commit is contained in:
@@ -52,7 +52,7 @@ class ActiveRecord extends BaseActiveRecord
|
|||||||
*/
|
*/
|
||||||
public function increment(string $column, int $value): bool|ActiveRecord
|
public function increment(string $column, int $value): bool|ActiveRecord
|
||||||
{
|
{
|
||||||
if (!$this->mathematics([$column => $value], '-')) {
|
if (!$this->mathematics([$column => $value], '+')) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$this->{$column} += $value;
|
$this->{$column} += $value;
|
||||||
|
|||||||
Reference in New Issue
Block a user