mirror of
https://github.com/guzzle/guzzle.git
synced 2025-03-14 19:29:49 +01:00
Fixing ResourceIteratorFactoryInterface.php to use an empty array. Fixing Travis build status image.
This commit is contained in:
parent
01eb20051d
commit
0c086f67a0
@ -195,7 +195,7 @@ The resulting URL would become ``http://test.com?a=hi&b=there``
|
||||
Unit testing
|
||||
------------
|
||||
|
||||
[](http://travis-ci.org/guzzle/guzzle)
|
||||
[](http://travis-ci.org/guzzle/guzzle)
|
||||
|
||||
You will first need to clone the GitHub repository:
|
||||
|
||||
|
@ -40,11 +40,11 @@ class ResourceIteratorClassFactory implements ResourceIteratorFactoryInterface
|
||||
* Create a resource iterator
|
||||
*
|
||||
* @param CommandInterface $data Command used for building the iterator
|
||||
* @param array $options Iterator options.
|
||||
* @param array $options Iterator options that are exposed as data.
|
||||
*
|
||||
* @return ResourceIteratorInterface
|
||||
*/
|
||||
public function build($data, array $options = null)
|
||||
public function build($data, array $options = array())
|
||||
{
|
||||
if (!($data instanceof CommandInterface)) {
|
||||
throw new InvalidArgumentException('The first argument must be an instance of CommandInterface');
|
||||
|
@ -11,9 +11,9 @@ interface ResourceIteratorFactoryInterface
|
||||
* Create a resource iterator
|
||||
*
|
||||
* @param mixed $data Data used by the concrete factory to create iterators
|
||||
* @param array $options Iterator options
|
||||
* @param array $options Iterator options that are exposed as data.
|
||||
*
|
||||
* @return ResourceIteratorInterface
|
||||
*/
|
||||
public function build($data, array $options = null);
|
||||
public function build($data, array $options = array());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user