ZF2-174: Zend\Service\Twitter throws an Exception

Description

Fatal error: Uncaught exception 'Zend\Service\Twitter\Exception\DomainException' with message 'Invalid method type "_uri"' in /var/www/app/zf2/library/Zend/Service/Twitter/Twitter.php:221 Stack trace:

0 /var/www/app/zf2/library/Zend/Service/Twitter/Twitter.php(964): Zend\Service\Twitter\Twitter->__get('_uri')

1 /var/www/app/zf2/library/Zend/Service/Twitter/Twitter.php(1014): Zend\Service\Twitter\Twitter->_prepare('/1/statuses/upd...')

2 /var/www/app/zf2/library/Zend/Service/Twitter/Twitter.php(466): Zend\Service\Twitter\Twitter->_post('/1/statuses/upd...', Array)

3 [internal function]: Zend\Service\Twitter\Twitter->statusUpdate('Hallo Twitter!')

4 /var/www/app/zf2/library/Zend/Service/Twitter/Twitter.php(258): call_user_func_array(Array, Array)

5 [internal function]: Zend\Service\Twitter\Twitter->__call('update', Array)

6 /var/www/app/tools/tweet.php(24): Zend\Service\Twitter\Twitter-> in /var/www/app/zf2/library/Zend/Service/Twitter/Twitter.php on line 221

CODE:

use Zend\Service\Twitter\Twitter;

$text = "Hallo Twitter!";

$token = new \Zend\OAuth\Token\Access; $token->setParams(array( 'oauth_token' => '...', 'oauth_token_secret' => '...' ));

$twitter = new Twitter(array( 'consumerKey' => '...', 'consumerSecret' => '...', 'accessToken' => $token ));

$response = $twitter->status->update($text);

Comments

Could you test this fix #854?

Pull request merged in master branch.