Skip to content

Added constraints PHP format and some code tweaks #2083

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 3 commits into from
Jan 3, 2013

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Dec 31, 2012

This PR adds the PHP format for all PHP constraints, namespaces in every Yml and PHP format and fixes some spacing issues.

I think this is my last PR this year (well, I hope it is) so: Happy new Year 🎆 to every Symfony contributor and especially @weaverryan!

@stof
Copy link
Member

stof commented Dec 31, 2012

The change from Length to MinLength is indeed good for 2.0 (as Length does not exist in 2.0) but it will need to be changed back in 2.1 as MinLength is deprecated

{
public static function loadValidatorMetadata(ClassMetadata $metadata)
{
$metadata->addPropertyConstraint('firstName', new Assetc\Blank());
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be new Assert\Blank() probably ? :)

weaverryan added a commit that referenced this pull request Jan 3, 2013
Added constraints PHP format and some code tweaks
@weaverryan weaverryan merged commit 28c1351 into symfony:2.0 Jan 3, 2013
weaverryan added a commit that referenced this pull request Jan 3, 2013
weaverryan added a commit that referenced this pull request Jan 3, 2013
@weaverryan
Copy link
Member

Hey WouterJ!

Happy new year to you too (nice touch with the fireworks)! This is a great PR, I've merged it in with just a few tweaks, including the one mentioned by @l3l0.

Thanks everyone!

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

Successfully merging this pull request may close these issues.

4 participants