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 IntegrationPrinterWithPhpParserTest #255

Merged
merged 5 commits into from
Oct 9, 2024
Merged

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Oct 9, 2024

since PHPParser 5.3 this integration test fails.

it overlapps with a upstream implemenation of indentation-printing which was added with nikic/PHP-Parser@e50c67b

the PR removes the phpdoc-parser custom build indentation printer and re-uses the upstream indentation printer instead.

@staabm staabm marked this pull request as ready for review October 9, 2024 08:33
@staabm
Copy link
Contributor Author

staabm commented Oct 9, 2024

on my windows box for some reason I cannot fix CS here (creates a lot of unrelated changes).
@ondrejmirtes would be great you could fix cs/phpstan-baseline, in case the fix itself works for you

@@ -71,7 +72,7 @@ public function enterNode(Node $node)
$this->indentCharacter = $char;
$this->indentSize = $size;

return NodeTraverser::STOP_TRAVERSAL;
return NodeVisitor::STOP_TRAVERSAL;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drive-by deprecation fix

@staabm
Copy link
Contributor Author

staabm commented Oct 9, 2024

in case we agree on this one, I can have a look at simple-downgrader 2.x

@ondrejmirtes ondrejmirtes merged commit a131a15 into phpstan:2.0.x Oct 9, 2024
41 of 44 checks passed
@ondrejmirtes
Copy link
Member

Awesome, thank you!

I can have a look at simple-downgrader 2.x

Yes please :)

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