Removed unused $matches variable

This commit is contained in:
snipe 2017-11-06 21:26:30 -08:00
parent dec9ac1ac8
commit 4ae4083b7b

View file

@ -92,7 +92,7 @@ class ValidationServiceProvider extends ServiceProvider
$test_pattern = str_replace('regex:','', $value);
try {
preg_match($test_pattern, $test_string, $matches);
preg_match($test_pattern, $test_string);
return true;
} catch (\Exception $e) {
return false;