Skip to content

Commit

Permalink
Merge pull request #5255 from cakephp/3.0-depr
Browse files Browse the repository at this point in the history
Mark localized validation as deprecated for 3.0
  • Loading branch information
markstory committed Nov 25, 2014
2 parents 17c4947 + f3958f6 commit 367fc4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Validation/Validation.php
Expand Up @@ -640,6 +640,7 @@ public static function naturalNumber($check, $allowZero = false) {
* @param string|null $regex Regular expression to use
* @param string $country Country code (defaults to 'all')
* @return bool Success
* @deprecated 3.0.0 Will be removed in 3.0.0. Please use the Localized plugin instead.
*/
public static function phone($check, $regex = null, $country = 'all') {
if (is_array($check)) {
Expand Down Expand Up @@ -682,6 +683,7 @@ public static function phone($check, $regex = null, $country = 'all') {
* @param string|null $regex Regular expression to use
* @param string $country Country to use for formatting
* @return bool Success
* @deprecated 3.0.0 Will be removed in 3.0.0. Please use the Localized plugin instead.
*/
public static function postal($check, $regex = null, $country = 'us') {
if (is_array($check)) {
Expand Down

0 comments on commit 367fc4e

Please sign in to comment.