kreait / laravel-firebase

A Laravel package for the Firebase PHP Admin SDK
https://github.com/kreait/firebase-php
MIT License
992 stars 163 forks source link

Symfony response setContent() error #145

Closed ebiboy2 closed 1 year ago

ebiboy2 commented 1 year ago

I get this error Symfony\\Component\\HttpFoundation\\Response::setContent(): Argument #1 ($content) must be of type ?string, Kreait\\Firebase\\Auth given, called in /home/david/Documents/myNotifyApp/vendor/laravel/framework/src/Illuminate/Http/Response.php on line 72 when i call return $appAuth = Firebase::project('rabaflow-aecd0')->auth(); All credentials are correct. What could be wrong?

jeromegamez commented 1 year ago

Hey 👋

it looks as if you're returning the Auth component in a Controller Action instead of a string, view() or Response, but this is the only information that I can extract from the error.

If you'd like me to make more than an uneducated guess, you'd have to share some code and what you're trying to achieve 🙏

github-actions[bot] commented 1 year ago

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. Please make sure to update to the latest version and check if that solves the issue. Let me know if that works for you by leaving a 👍. Because this issue is marked as stale, it will be closed and locked in 7 days if no further activity occurs. Thank you for your contributions!