Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit cf1f691

Browse files
use validatorchain plugin manager rather than directly instantiate
1 parent 5cd2801 commit cf1f691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Input.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ protected function injectNotEmptyValidator()
491491
*/
492492
protected function prepareRequiredValidationFailureMessage()
493493
{
494-
$notEmpty = new NotEmpty();
494+
$notEmpty = $this->getValidatorChain()->plugin(NotEmpty::class);
495495
$templates = $notEmpty->getOption('messageTemplates');
496496
$message = $templates[NotEmpty::IS_EMPTY];
497497
$translator = $notEmpty->getTranslator();

0 commit comments

Comments
 (0)