-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Xdebug has detected a possible infinite loop #448
Comments
I'm happy to make a PR for the above but I'm not certain that is the right function and correct refactoring to fix the issue. I'm happy to provide further details if required and assist on this. |
@ajithMagic Hey. It'd be good to know why Laravel can't find the class. Even if removing the It's a bit inconvenient for me to test right now, as I'm on my phone. |
Hi @juse-less based, protected function getNamespaceFromIntegrationsPath(): string
{
$namespace = (array)str_replace(['\\App', '\\app'], '', str_replace('/', '\\', str_replace(base_path(), '', config('saloon.integrations_path'))));
return $namespace[0];
} Specifically |
@ajithMagic Hmm. I wonder if it'd be better to replace that specific $namespace = preg_replace('/^\\?app/i', '', ...);
return $namespace; Just be aware that this is a breaking change, as we're matching from the start, rather than any part of the namespace. |
Agreed 👍 |
Hi,
I'm using Saloon v3.10.0 and saloon/laravel-plugin v3.5.0 running on a Laravel project v10.48.19. Was using this package for very long time and I never had an issue like this before.
Today, while I was trying to generate a connector/request I got the following error.
Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '512' frames
.The text was updated successfully, but these errors were encountered: