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

fix: code location is nullable #3334

Merged

Conversation

mr-feek
Copy link
Contributor

@mr-feek mr-feek commented May 10, 2020

Added MethodVisibilityProviderInterface to a class and immediately got

Uncaught TypeError: Argument 5 passed to Psalm\LaravelPlugin\ReturnTypeProvider\EloquentBuilderReturnTypeProvider::isMethodVisible() must be an instance of Psalm\CodeLocation, null given

https://github.com/vimeo/psalm/blob/master/src/Psalm/Internal/Provider/MethodVisibilityProvider.php#L81 has this marked as nullable

@muglug muglug merged commit 7dd1823 into vimeo:master May 11, 2020
@muglug
Copy link
Collaborator

muglug commented May 11, 2020

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

Successfully merging this pull request may close these issues.

None yet

2 participants