Error: Call to a member function connection() on null #1646
luiseduardobraschi
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I'm getting the following error while trying to run the tests:
Call to a member function connection() on nullI've come across the same error in PHPUnit, which was easily solved by changing
PHPUnit\Framework\TestCasetoTests\TestCaseBut now I can't do it because I'm not the one calling the namespace. Is there a way to solve it.
Obs.: since I'm using Laravel 10, I decided to install version 2.0 so I wouldn't have to mess with the versions of the other dependencies.
Thanks in advance for any input.
Beta Was this translation helpful? Give feedback.
All reactions