From c7ae30b76dccfd35c57aa76d4acf41d1b26ccb80 Mon Sep 17 00:00:00 2001 From: cerbero90 <22cerbero22@gmail.com> Date: Mon, 27 Jan 2014 12:03:25 +0100 Subject: [PATCH] $params set as non-optional parameter in __call() The arguments parameter isn't considered optional by PHP. This editing makes the class more testable. Reference: https://github.com/padraic/mockery/issues/263 --- EpiTwitter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EpiTwitter.php b/EpiTwitter.php index a5e9e94..3cdf940 100644 --- a/EpiTwitter.php +++ b/EpiTwitter.php @@ -73,7 +73,7 @@ public function __construct($consumerKey = null, $consumerSecret = null, $oauthT $this->setToken($oauthToken, $oauthTokenSecret); } - public function __call($name, $params = null/*, $username, $password*/) + public function __call($name, $params/*, $username, $password*/) { $parts = explode('_', $name); $method = strtoupper(array_shift($parts));