Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type error: Argument 1 passed to Kreait\Firebase\Factory::withVerifierCache() must be an instance of Psr\SimpleCache\CacheInterface, instance of Illuminate\Cache\Repository given #1

Closed
sujeet-agrahari opened this issue Aug 19, 2019 · 4 comments

Comments

@sujeet-agrahari
Copy link

sujeet-agrahari commented Aug 19, 2019

I am using laravel 5.2 and the error is coming from below file.
vendor\kreait\laravel-firebase\src\ServiceProvider.php on line 55.

if ($cacheStore = $config['cache_store'] ?? null) {
               $factory = $factory->withVerifierCache(
                   $app->make('cache')->store($cacheStore)// from here
               );
           }
@jeromegamez
Copy link
Member

jeromegamez commented Aug 19, 2019

This package needs Laravel 5.8 to work properly with cache (see laravel/framework#20194). I will add this information to the README.

What you could try is disabling the cache, by first publishing the config for the package with

php artisan vendor:publish --provider="Kreait\Laravel\Firebase\ServiceProvider" --tag=config

and then setting the cache_store setting to null.

@sujeet-agrahari
Copy link
Author

@jeromegamez Thanks fixed. I just set FIREBASE_CACHE_STORE=null in .env file.

@jeromegamez
Copy link
Member

@Lordofcodes Please keep in mind that you will now have to stay on 1.0.0 of the release forever 😅 (or until you upgrade your Laravel application to 5.8)

@sujeet-agrahari
Copy link
Author

@jeromegamez Not a problem. Thank you so much.👏😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants