File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,11 @@ public function addOrUpdate($field, $value) {
88
88
* @return $this
89
89
*/
90
90
public function addExpr ($ str ) {
91
- $ this ->fields [] = func_get_args ();
91
+ if (count (func_get_args ()) > 1 ) {
92
+ $ this ->fields [] = func_get_args ();
93
+ } else {
94
+ $ this ->fields [] = $ str ;
95
+ }
92
96
return $ this ;
93
97
}
94
98
@@ -98,7 +102,11 @@ public function addExpr($str) {
98
102
* @return $this
99
103
*/
100
104
public function updateExpr ($ str ) {
101
- $ this ->update [] = func_get_args ();
105
+ if (count (func_get_args ()) > 1 ) {
106
+ $ this ->update [] = func_get_args ();
107
+ } else {
108
+ $ this ->update [] = $ str ;
109
+ }
102
110
return $ this ;
103
111
}
104
112
@@ -107,8 +115,13 @@ public function updateExpr($str) {
107
115
* @return $this
108
116
*/
109
117
public function addOrUpdateExpr ($ str ) {
110
- $ this ->fields [] = func_get_args ();
111
- $ this ->update [] = func_get_args ();
118
+ if (count (func_get_args ()) > 1 ) {
119
+ $ this ->fields [] = func_get_args ();
120
+ $ this ->update [] = func_get_args ();
121
+ } else {
122
+ $ this ->fields [] = $ str ;
123
+ $ this ->update [] = $ str ;
124
+ }
112
125
return $ this ;
113
126
}
114
127
You can’t perform that action at this time.
0 commit comments