Skip to content

Commit

Permalink
hotfix: Undefined constant
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoDornelles authored Nov 11, 2021
1 parent 6f43386 commit 4c4f94f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UuidValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ class UuidValidator extends \yii\validators\RegularExpressionValidator
const PATTERN_V4 = '/^[0-9A-F]{8}(-?)[0-9A-F]{4}(-?)[4][0-9A-F]{3}(-?)[89AB][0-9A-F]{3}(-?)[0-9A-F]{12}$/i';
const PATTERN_V5 = '/^[0-9A-F]{8}(-?)[0-9A-F]{4}(-?)[5][0-9A-F]{3}(-?)[89AB][0-9A-F]{3}(-?)[0-9A-F]{12}$/i';

public $pattern = V4_PATTERN;
public $pattern = self::PATTERN_V4;
}

0 comments on commit 4c4f94f

Please sign in to comment.