Skip to content

Commit bd274a0

Browse files
Adjust exception message
Co-authored-by: Henrique Moody <henriquemoody@gmail.com>
1 parent b0875c6 commit bd274a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/NamespacedValidatorFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private function createRule(string $ruleName, array $arguments = []): Validator
8888
return $reflection->newInstanceArgs($arguments);
8989
} catch (ReflectionException) {
9090
throw new InvalidClassException(
91-
sprintf('"%s" could not be instantiated', $ruleName),
91+
sprintf('Could not create validator "%s" with the %s arguments', $ruleName, stringify($arguments)),
9292
);
9393
}
9494
}

0 commit comments

Comments
 (0)