Skip to content

Commit 403b354

Browse files
authored
Merge pull request #29 from chadicus/dev/client-interface-collection
Allow ClientInterface in Collection::__construct
2 parents 325291f + 9773565 commit 403b354

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ final class Collection implements \Iterator, \Countable
6767
/**
6868
* Create a new collection
6969
*
70-
* @param Client $client client connection to the API
70+
* @param ClientInterface $client client connection to the API
7171
* @param string $resource name of API resource to request
7272
* @param array $filters key value pair array of search filters
7373
*/
74-
public function __construct(Client $client, $resource, array $filters = [])
74+
public function __construct(ClientInterface $client, $resource, array $filters = [])
7575
{
7676
Util::throwIfNotType(['string' => [$resource]], true);
7777

0 commit comments

Comments
 (0)