-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
IndexOutOfBoundsException #1631
Comments
Issue could be reproduced using the following steps:
services:
App\Service\Foo:
arguments:
- !php/const App\Service\Bar::FOO
services:
App\Service\Foo:
arguments:
- !php/const App\Service<cursor>\Bar::FOO
|
fixed via #1641 |
Unfortunately problem is still reproducible. #1641 was little bit different case which I found while trying to reproduce this issue. TL;DRString classFQN = prefix.substring(0, getElement().getText().indexOf(SCOPE_OPERATOR)); should be changed to String classFQN = prefix.substring(0, prefix.indexOf(SCOPE_OPERATOR)); Detailed explanationIt's what happens in
Line 45 in c3f00f7
so When we reach line 49 Line 49 in c3f00f7
we are looking for scope operator position to extract FQCN from string using I can open PR 😉 |
…fBoundsException when cursor is before scope operator
Fixed #1631: PhpConstGotoCompletionProvider throws IndexOutOfBoundsException when cursor is before scope operator
Software version:
StackTrace:
The text was updated successfully, but these errors were encountered: