Fix tests on PHP 5.4

This commit is contained in:
Romain Neutron
2012-09-27 01:46:18 +02:00
parent d4f466ef63
commit 0ac8a9d8ae
107 changed files with 196 additions and 175 deletions

View File

@@ -65,7 +65,7 @@ class API_OAuth2_Token
* @param API_OAuth2_Account $account
* @return API_OAuth2_Token
*/
public function __construct(appbox &$appbox, API_OAuth2_Account &$account)
public function __construct(appbox $appbox, API_OAuth2_Account $account)
{
$this->appbox = $appbox;
$this->account = $account;
@@ -300,7 +300,7 @@ class API_OAuth2_Token
* @param string $scope
* @return API_OAuth2_Token
*/
public static function create(appbox &$appbox, API_OAuth2_Account &$account, $scope = null)
public static function create(appbox $appbox, API_OAuth2_Account $account, $scope = null)
{
$sql = 'INSERT INTO api_oauth_tokens
(oauth_token, session_id, api_account_id, expires, scope)