Skip to content

Removed useless parentheses in Assert annotations#10676

Merged
javiereguiluz merged 1 commit intosymfony:2.8from
thomasbisignani:patch-4
Nov 16, 2018
Merged

Removed useless parentheses in Assert annotations#10676
javiereguiluz merged 1 commit intosymfony:2.8from
thomasbisignani:patch-4

Conversation

@thomasbisignani
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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