TappNetwork/laravel-airtable

Issue when AirtableManager tries to create a AirtableApiClient

Closed this issue · 2 comments

HI!

I tried to update a project that uses this lib from v1.0 to v1.2.
When running my code, I get the following error:

 Tapp\Airtable\Api\AirtableApiClient::__construct(): Argument #4 ($client) must be of type ?Illuminate\Support\Facades\Http, string given, called in vendor/tapp/laravel-airtable/src/AirtableManager.php on line 124

Reading the related code shows indeed an error:

The error points out a type error because the fourth parameter was removed, which created a shift.
The commit that introduced the issue is here: eb6aac5#diff-62e27cda4cce08967fff7c195aadf69244cdf9d7fa61fa322443478f81da5f4fL24

Could you have a look please?

Indeed it seems to work. Thanks!