Permalink
Browse files

Fucntion signatures should match when containing arrays (PHP5.4 bug)

  • Loading branch information...
1 parent 840343f commit 1eab669f9b54af7cc4041039f832798e1bb018f7 @simonwelsh simonwelsh committed Oct 28, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/api/RestfulServiceTest.php
@@ -218,7 +218,7 @@ class RestfulServiceTest_MockRestfulService extends RestfulService {
public $session = null;
- public function request($subURL = '', $method = "GET", $data = null, $headers = null) {
+ public function request($subURL = '', $method = "GET", $data = null, $headers = null, $curlOptions = array()) {
if(!$this->session) {
$this->session = new Session(array());
@@ -277,7 +277,7 @@ public function request($subURL = '', $method = "GET", $data = null, $headers =
*/
class RestfulServiceTest_MockErrorService extends RestfulService {
- public function curlRequest() {
+ public function curlRequest($url, $method, $data = null, $headers = null, $curlOptions = array()) {
return new RestfulService_Response('<error>HTTP Error</error>', 400);
}

1 comment on commit 1eab669

Owner

chillu commented on 1eab669 Oct 29, 2011

@sminnee @simonwelsh Please try to follow our commit naming conventions.

Please sign in to comment.