Skip to content

Check @deprecated format only if file has comment #400

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 1 commit into from
Jun 9, 2022

Conversation

mattijv
Copy link
Contributor

@mattijv mattijv commented Jun 2, 2022

The MethodAnnotationStructureSniff throws an error if the file does
not have a comment ($commentStartPtr is false). This commit moves the
@deprecated format check after we check that the file has a comment.

This fixes #399.

The MethodAnnotationStructureSniff throws an error if the file does
not have a comment ($commentStartPtr is false). This commit moves the
@deprecated format check after we check that the file has a comment.
@sivaschenko
Copy link
Member

@magento import pr to magento-commerce/magento-coding-standard

@sivaschenko
Copy link
Member

Thanks for the fix @mattijv !

@m2-github-services
Copy link
Contributor

@sivaschenko the Pull Request is successfully imported.

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

Successfully merging this pull request may close these issues.

Calling hasDeprecatedWellFormatted with a false $commentStartPtr leads to error
4 participants