8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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