algolia / algoliasearch-client-php

⚡️ A fully-featured and blazing-fast PHP API client to interact with Algolia.
https://www.algolia.com/doc/api-client/php/getting-started/
MIT License
671 stars 116 forks source link

Use interface for constructor arguments #704

Closed loevgaard closed 2 years ago

loevgaard commented 2 years ago
Q A
Bug fix? no
New feature? no
BC breaks? no
Related Issue Fix #...
Need Doc update no

Describe your change

Using interface for constructor arguments in clients that wasn't updated when introducing interface

What problem is this fixing?

This allows developers to easily mock the clients (and the underlying APIWrapper)

loevgaard commented 2 years ago

@maxiloc, @speedblue, @nunomaduro, @julienbourdeau, @chloelbn: Can any of you merge this? :)