Skip to content

Commit

Permalink
removed deprecated notices that make the tests fail
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Mar 23, 2015
1 parent 01a12bf commit a25d9ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 33 deletions.
30 changes: 0 additions & 30 deletions Constraints/Deprecated/UuidValidator.php

This file was deleted.

6 changes: 3 additions & 3 deletions Constraints/UuidValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@ class UuidValidator extends ConstraintValidator
/**
* @deprecated since version 2.6, to be removed in 3.0
*/
const STRICT_PATTERN = Deprecated::STRICT_PATTERN;
const STRICT_PATTERN = '/^[a-f0-9]{8}-[a-f0-9]{4}-[%s][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/i';

/**
* @deprecated since version 2.6, to be removed in 3.0
*/
const LOOSE_PATTERN = Deprecated::LOOSE_PATTERN;
const LOOSE_PATTERN = '/^[a-f0-9]{4}(?:-?[a-f0-9]{4}){7}$/i';

/**
* @deprecated since version 2.6, to be removed in 3.0
*/
const STRICT_UUID_LENGTH = Deprecated::STRICT_UUID_LENGTH;
const STRICT_UUID_LENGTH = 36;

/**
* {@inheritdoc}
Expand Down

0 comments on commit a25d9ae

Please sign in to comment.