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

[5.7] Maximum function nesting level on Queue::fake() #28163

Closed
kauanslr opened this issue Apr 10, 2019 · 2 comments
Closed

[5.7] Maximum function nesting level on Queue::fake() #28163

kauanslr opened this issue Apr 10, 2019 · 2 comments

Comments

@kauanslr
Copy link
Contributor

kauanslr commented Apr 10, 2019

  • Laravel Version: 5.7.*
  • PHP Version: 7.2

Description:

So, refactoring some code i've found a circular dependency in the Queue mock:
If you try to call a undefined method in the Queue mock you will see a Error : Maximum function nesting level of '256' reached, aborting!

Obviously you can just use an existing function, but it can be an inconvenient with any method naming change.

Steps To Reproduce:

  • Create a new test.
\Queue::fake();
\Queue::undefinedMethod();
@Arkanius
Copy link
Contributor

Interesting. I tried and this is really happening

@driesvints
Copy link
Member

Hey there,

Unfortunately we don't support this version anymore. Please check out our support policy on which versions we are currently supporting. Can you please try to upgrade to the latest version and see if your problem persists? If so feel free to reply and we'll try to have a look.

Thanks!

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

3 participants