Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23a8b39 commit 9db655aCopy full SHA for 9db655a
reference/constraints/CardScheme.rst
@@ -101,7 +101,7 @@ on an object that will contain a credit card number.
101
{
102
$metadata->addPropertyConstraint('cardNumber', new Assert\CardScheme([
103
'schemes' => [
104
- 'VISA',
+ Assert\CardScheme::VISA,
105
],
106
'message' => 'Your credit card number is invalid.',
107
]));
reference/constraints/Isbn.rst
@@ -100,7 +100,7 @@ on an object that will contain an ISBN.
100
public static function loadValidatorMetadata(ClassMetadata $metadata)
$metadata->addPropertyConstraint('isbn', new Assert\Isbn([
- 'type' => 'isbn10',
+ 'type' => Assert\Isbn::ISBN_10,
'message' => 'This value is not valid.',
}
0 commit comments