Use IsTrue instead of True class to be PHP7 compliant

This commit is contained in:
Benoît Burnichon
2016-03-01 11:48:10 +01:00
parent cbb07fbb27
commit 85d52fe6b8

View File

@@ -62,7 +62,7 @@ class PhraseaRegisterForm extends AbstractType
'label' => 'Terms of Use',
'mapped' => false,
"constraints" => [
new Assert\True([
new Assert\IsTrue([
"message" => "Please accept the Terms and conditions in order to register."
])],
]);