- if (null === $constraint->type) {
- if ($constraint->isbn10 && !$constraint->isbn13) {
- @trigger_error('The "isbn10" option of the Isbn constraint is deprecated since version 2.5 and will be removed in 3.0. Use the "type" option instead.', E_USER_DEPRECATED);
- $constraint->type = 'isbn10';
- } elseif ($constraint->isbn13 && !$constraint->isbn10) {
- @trigger_error('The "isbn13" option of the Isbn constraint is deprecated since version 2.5 and will be removed in 3.0. Use the "type" option instead.', E_USER_DEPRECATED);
- $constraint->type = 'isbn13';
- }
- }
-