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

More accurately guessing Openapi mistype line and position #1400

Merged
merged 4 commits into from
Jan 29, 2023

Conversation

matiaspub
Copy link
Contributor

image

$context->line point to 26 line - method itself. Annotations always placed above the method/class/property/e.t.c.
That means we have to move back(decrease $context->line to got line of the error in current annotation).

I've checked other places, and can't find any place where $context->line could be pointed to the line of start annotation.
I've checked older PHP versions - ReflectionMethod::getStartLine always returned line of the method itself, not line of the method annotation.

@DerManoMann DerManoMann merged commit 6f190e1 into zircote:master Jan 29, 2023
@DerManoMann
Copy link
Collaborator

Thanks @matiaspub

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

Successfully merging this pull request may close these issues.

2 participants