-
Notifications
You must be signed in to change notification settings - Fork 185
TypeError: ... in DefinitionResolver.php:444 #286
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
Comments
I've been experiencing this same issue.
Based on the stack trace, it appears that
The file triggering the error appears to be this: https://github.com/laravel/lumen-framework/blob/v5.2.9/tests/FullApplicationTest.php EDIT: Commented out the contents and indexing completed successfully. That seems to be the only problematic file. Strange. |
@carmanchris31, I was able to fix this by adding this check before the
The final logic should be something like this:
|
I had the same problem. Was able to fix it by:
Then it all work fine. No error lines in the developer's console. |
@felixfbecker This bug occurs because
I would open a PR but I don't know how the stubs file is created. |
Awesome find! The stuns file is generated in ComposerScripts.php, but the bug likely is in DefinitionResolver |
Hi, shouldn't this bug be closed as the fix has already been merged? |
This issue is similar to #252 but it happens inside the
if ($expr instanceof Node\Expr\FuncCall) {
logic.This is the error I get in DefinitionResolver.php when the server is parsing this file:
I was able to fix it by adding this code to that line:
final changed code:
Not sure that's the right approach but it fixed the problem.
The text was updated successfully, but these errors were encountered: