ktamas77 / firebase-php

Firebase PHP Client
791 stars 215 forks source link

Cannot use Database and Auth together #75

Closed echosalik closed 5 years ago

echosalik commented 6 years ago

I m getting this error: Fatal error: Cannot use Kreait\Firebase\Http\Auth as Auth because the name is already in use vendor\kreait\firebase-php\src\Firebase\Database.php on line 10

But it doesn't make sense. The conflict comes from the Auth.php because there is already a Class with name Auth but the namespace is different for both, so it should not matter. Right?

Disabling line 10 on Database.php removes the error. Which is am using as a fix.

ktamas77 commented 5 years ago

You are using a different library. To use this library you need to install it with composer require ktamas77/firebase-php