mirror of
https://codeberg.org/vlw/scaffold.git
synced 2026-02-26 11:31:57 +01:00
fix: use func_num_args to determine if $return should be used for Database Model
This commit is contained in:
parent
fd0c8cbbcd
commit
cedca92c5d
1 changed files with 1 additions and 1 deletions
|
|
@ -108,6 +108,6 @@
|
||||||
->where($this->where)
|
->where($this->where)
|
||||||
->update([$key => $value]);
|
->update([$key => $value]);
|
||||||
|
|
||||||
return $return ?? $value;
|
return func_num_args() === 2 ? $value : $return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue