Skip to content

Commit

Permalink
Prevent IDE from marking class as code erroring.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Apr 25, 2016
1 parent fb4f62e commit 376ed71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Validation/Validation.php
Expand Up @@ -481,7 +481,8 @@ public static function localizedTime($check, $type = 'datetime', $format = null)
if (empty($methods[$type])) {
throw new \InvalidArgumentException('Unsupported parser type given.');
}
return (Time::{$methods[$type]}($check, $format) !== null);
$method = $methods[$type];
return (Time::$method($check, $format) !== null);
}

/**
Expand Down

0 comments on commit 376ed71

Please sign in to comment.