Skip to content

Commit

Permalink
fix ValidationDefinitionHelper (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mararok authored Feb 7, 2020
1 parent 0a9382b commit b07b2b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SAREhub/Microt/App/Request/ValidationDefinitionHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public static function parsedBody($validator)
private static function validatorDef($validator)
{
if ($validator instanceof Validatable) {
return factory(function (Validatable $validator) {
return $validator;
return factory(function (ValidatorWrapper $wrapper) {
return $wrapper->getValidator();
})->parameter(0, value(ValidatorWrapper::create($validator)));
}

Expand Down

0 comments on commit b07b2b4

Please sign in to comment.