Skip to content

Commit

Permalink
Merge pull request #406 from rez0sk/master
Browse files Browse the repository at this point in the history
Fix handling multiple fields for required_if
  • Loading branch information
shalvah authored Jan 16, 2022
2 parents 4570c2a + 28286a4 commit 5879aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extracting/ParsesValidationRules.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ protected function parseRule($rule, array &$parameterData, bool $independentOnly
break;
case 'required_if':
$parameterData['description'] .= ' ' . $this->getDescription(
$rule, [':other' => "<code>{$arguments[0]}</code>", ':value' => "<code>{$arguments[1]}</code>"]
$rule, [':other' => "<code>{$arguments[0]}</code>", ':value' => w::getListOfValuesAsFriendlyHtmlString(array_slice($arguments, 1))]
) . ' ';
break;
case 'required_unless':
Expand Down

0 comments on commit 5879aec

Please sign in to comment.