File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,6 @@ public function clearHeaders()
86
86
*/
87
87
public function setHeaders (array $ headers )
88
88
{
89
- // TODO: Validate argument
90
89
$ this ->headers = $ headers ;
91
90
return $ this ;
92
91
}
@@ -176,11 +175,11 @@ public function hasHeaders()
176
175
}
177
176
178
177
/**
179
- * @return bool
178
+ * @return int
180
179
*/
181
180
public function getHeaderCount ()
182
181
{
183
- return count ($ this ->headers );
182
+ return ( int ) count ($ this ->headers );
184
183
}
185
184
186
185
/**
@@ -301,11 +300,11 @@ public function hasCookies()
301
300
}
302
301
303
302
/**
304
- * @return bool
303
+ * @return int
305
304
*/
306
305
public function getCookieCount ()
307
306
{
308
- return count ($ this ->cookies );
307
+ return ( int ) count ($ this ->cookies );
309
308
}
310
309
311
310
/**
You can’t perform that action at this time.
0 commit comments