File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public function isNew()
53
53
}
54
54
55
55
56
- public function get ($ name , $ default = null )
56
+ public function get ($ name , $ default = '' )
57
57
{
58
58
if (!$ this ->has ($ name ))
59
59
{
@@ -137,7 +137,7 @@ public function remove($field, $key)
137
137
*/
138
138
public function __call ($ method , $ arguments )
139
139
{
140
- list ($ operation , $ attribute ) = preg_split ('/(?=[A-Z])/ ' , $ method , 2 );
140
+ list ($ operation , $ attribute ) = preg_split ('/(?=[A-Z])/ ' , $ method , 2 );
141
141
$ attribute = strtolower ($ attribute [0 ]).substr ($ attribute , 1 );
142
142
143
143
switch ($ operation )
@@ -148,7 +148,7 @@ public function __call($method, $arguments)
148
148
case 'get ' :
149
149
return isset ($ arguments [0 ]) ? $ this ->get ($ attribute , $ arguments [0 ]) : $ this ->get ($ attribute );
150
150
case 'has ' :
151
- return $ this -> has ( $ attribute ) ;
151
+ return true ;
152
152
case 'clear ' :
153
153
$ this ->clear ($ attribute );
154
154
break ;
You can’t perform that action at this time.
0 commit comments