Skip to content

Removed useless parentheses in Assert annotations #10676

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
Nov 16, 2018

Conversation

thomasbisignani
Copy link
Contributor

@thomasbisignani thomasbisignani commented Nov 15, 2018

To be consistent, this PR removes the useless empty parentheses in the @Assert annotations for constraints.

Sometimes @Assert annotations for constraints without options were used with empty parentheses, sometimes without parentheses.

@javiereguiluz
Copy link
Member

Thanks Thomas! Personally I like this change a lot. Cheers!

@javiereguiluz javiereguiluz merged commit f5980f0 into symfony:2.8 Nov 16, 2018
javiereguiluz added a commit that referenced this pull request Nov 16, 2018
…sbisignani)

This PR was merged into the 2.8 branch.

Discussion
----------

Removed useless parentheses in Assert annotations

To be consistent, this PR removes the useless empty parentheses in the `@Assert` annotations for constraints.

Sometimes `@Assert` annotations for constraints without options were used with empty parentheses, sometimes without parentheses.

Commits
-------

f5980f0 Removed useless parentheses in Assert annotations
@javiereguiluz
Copy link
Member

I've only found (and fixed) one occurrence of empty parenthesis while merging thi in the upper branches, so I think we're good.

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.

3 participants