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 code grooming #7233

Merged
merged 8 commits into from Dec 28, 2021
Merged

more code grooming #7233

merged 8 commits into from Dec 28, 2021

Conversation

orklah
Copy link
Collaborator

@orklah orklah commented Dec 27, 2021

It's pretty minor refactoring, except for what I removed in ParseTreeCreator. What I removed felt important but I couldn't get how it could be useful and tests seems to prove me right...

@orklah orklah added the release:internal The PR will be included in 'Internal changes' section of the release notes label Dec 27, 2021
Copy link
Collaborator

@weirdan weirdan left a comment

Choose a reason for hiding this comment

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

What I removed felt important but I couldn't get how it could be useful

We can leave it for another day then. I imagine it would be quite a pain to put it back half a year later should it actually break something.

@@ -55,8 +55,6 @@ public static function getFunctionReturnType(FunctionReturnTypeProviderEvent $ev
) {
$filter_type_type = $second_arg_type->getSingleIntLiteral();

$filter_type = null;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would actually either leave it here or add a default case to the switch below.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok then.

Comment on lines -104 to -105
$lines[$k] = str_replace("\t", ' ', $line);
$lines[$k] = preg_replace('/^ *\*/', '', $line);
Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks like a bug actually, the tab expansion was futile.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, this was definitely a bug. Forgot to mention it in the PR. I fixed it the way I think it was intended, but I'm not sure what it was designed to do in what case though...

@orklah orklah merged commit f9b3600 into vimeo:master Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:internal The PR will be included in 'Internal changes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants