stevenmaguire / oauth2-uber

Uber OAuth 2.0 support for the PHP League's OAuth 2.0 Client
MIT License
12 stars 3 forks source link

AbstractProv ider::__construct() must be of the type array, object given #3

Open cuzboo opened 6 years ago

cuzboo commented 6 years ago

I am having an issue that says:

Type error: Argument 1 passed to League\OAuth2\Client\Provider\AbstractProv
ider::__construct() must be of the type array, object given, called in /hom
e/boris/Documents/Laravel Casovi/moj_blog/vendor/laravel/framework/src/Illu
minate/Foundation/ProviderRepository.php on line 208

I can't open anything or install anything else. My question is: why? :) abs

stevenmaguire commented 6 years ago

@cuzboo thanks for the issue. I think this error message is very straightforward. It looks like you are providing an object instead of an array for configuration. It looks like you're using Laravel. Can you provide a snippet of code that shows how you are creating the provider in Laravel?