1
0
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:
Michael Dowling 2012-09-05 00:43:02 -07:00
parent 01eb20051d
commit 0c086f67a0
3 changed files with 5 additions and 5 deletions

View File

@ -195,7 +195,7 @@ The resulting URL would become ``http://test.com?a=hi&b=there``
Unit testing
------------
[![Build Status](https://secure.travis-ci.org/guzzle/guzzle.png)](http://travis-ci.org/guzzle/guzzle)
[![Build Status](https://secure.travis-ci.org/guzzle/guzzle.png?branch=master)](http://travis-ci.org/guzzle/guzzle)
You will first need to clone the GitHub repository:

View File

@ -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');

View File

@ -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());
}