Skip to content

Fix variable type from method return value, add tests #393

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

Merged
merged 4 commits into from
Jun 10, 2017

Conversation

roblourens
Copy link
Contributor

@roblourens roblourens commented Jun 10, 2017

The change in DefinitionResolver correctly resolves the type of a method call expression.

Includes completion tests for a method and a static function. Also adds validation tests to check that the definitions of these methods are handled correctly (although this was correct before). I also modified the validation test to write the tostring value of the definition type, instead of just the class. This is much more useful.

Fixes #386

@felixfbecker felixfbecker changed the title Fix variable type from method return value, add tests. Fixes #386 Fix variable type from method return value, add tests Jun 10, 2017
@felixfbecker felixfbecker merged commit f10680e into felixfbecker:master Jun 10, 2017
lialan pushed a commit to lambdalab/php-language-server that referenced this pull request Oct 7, 2017
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.

Show correct type for var assigned from method return
3 participants