Permalink
Browse files

Declaration of PestJSON::put() should be compatible with that of Pest…

…::put()
  • Loading branch information...
1 parent 1893553 commit 00275a8e4a172c36ae16d82cb410bff39e50d40a @vhpoet vhpoet committed Nov 29, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 PestJSON.php
View
@@ -25,11 +25,11 @@
*/
class PestJSON extends Pest
{
- public function post($url, $data, $headers) {
+ public function post($url, $data, $headers=array()) {
return parent::post($url, json_encode($data), $headers);
}
- public function put($url, $data, $headers) {
+ public function put($url, $data, $headers=array()) {
return parent::put($url, json_encode($data), $headers);
}

0 comments on commit 00275a8

Please sign in to comment.