|
@@ -51,7 +51,7 @@ |
|
|
block discarded – undo |
|
51
|
51
|
$Rule = 'Iamfarhad\Validation\Rules'; |
|
52
|
52
|
if (class_exists($Rule . '\\' . $class)) { |
|
53
|
53
|
$reflectionClass = new \ReflectionClass($Rule . '\\' . $class); |
|
54
|
|
- if(!$reflectionClass->implementsInterface(ValidationRuleInterface::class)) { |
|
|
54
|
+ if (!$reflectionClass->implementsInterface(ValidationRuleInterface::class)) { |
|
55
|
55
|
throw new \Exception('this extenstion is not instance of ValidationRuleInterface'); |
|
56
|
56
|
} |
|
57
|
57
|
$module = $reflectionClass->newInstanceArgs([]); |
Please login to merge, or discard this patch.