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

Comment missing in AST when in the middle of fluent call #743

Closed
ondrejmirtes opened this issue Dec 18, 2020 · 0 comments
Closed

Comment missing in AST when in the middle of fluent call #743

ondrejmirtes opened this issue Dec 18, 2020 · 0 comments

Comments

@ondrejmirtes
Copy link
Contributor

Given this code:

<?php

declare(strict_types=1);

$objectForSetter = new ObjectForSetter();
$awesomeFeature = new AwesomeFeature();
$awesomeFeature
	->setVariable($objectForSetter->getVariable()) // @phpstan-ignore-line
	->doSmth();

There's no @phpstan-ignore-line comment in the AST.

Original issue: phpstan/phpstan#4250

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

No branches or pull requests

1 participant