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

IgnoreLexer: drop support for multiline identifiers #3056

Merged
merged 2 commits into from May 10, 2024

Conversation

janedbal
Copy link
Contributor

@janedbal janedbal commented May 9, 2024

No description provided.

Copy link
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

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

  1. Please keep the EOL token in the array. It should be used in parseIdentifiers to stop parsing.
  2. There should be a test with @phpstan-ignore followed by a new line to cause a parse error.
  3. We should stop supporting trailing comma, there should be a test for that.

@janedbal
Copy link
Contributor Author

Added as you want. I also added more tests for current behaviour, but I think it should not be that lax and it should report any unsupported usages. Maybe, I'll try to send another MR that adjusts that.

@janedbal
Copy link
Contributor Author

Removed the snapshot, will create separate MR with that.

@ondrejmirtes ondrejmirtes merged commit 49498ce into phpstan:1.11.x May 10, 2024
444 of 445 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants