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 e7246b6 commit 503c07cCopy full SHA for 503c07c
reference/constraints/Isbn.rst
@@ -48,8 +48,8 @@ on an object that will contain an ISBN.
48
{
49
/**
50
* @Assert\Isbn(
51
- * type = isbn10,
52
- * message: This value is not valid.
+ * type = "isbn10",
+ * message = "This value is not valid."
53
* )
54
*/
55
protected $isbn;
@@ -99,7 +99,7 @@ on an object that will contain an ISBN.
99
public static function loadValidatorMetadata(ClassMetadata $metadata)
100
101
$metadata->addPropertyConstraint('isbn', new Assert\Isbn(array(
102
- 'type' => isbn10,
+ 'type' => 'isbn10',
103
'message' => 'This value is not valid.'
104
)));
105
}
0 commit comments