ZF-8218: remove unnecessary requirements from Zend_Service_Twitter constructor

Description

There are cases where Zend_Service_Twitter can be used without authentication, but the constructor requires $username and $password to always be passed. For example, checking if a given username exists or not:

$tw = new Zend_Service_Twitter(null); $exists = $tw->user->show($who)->id() !== null;

Since the first parameter is required, one can't simply do this:

$tw = new Zend_Service_Twitter();

I'd like to propose that both constructor parameters should be optional, in order to more cleanly support these anonymous uses.

Comments

Done with r19095 and merged into the release branch with r19096