Browse Source

Fix accepted_if test by hard coding the description

hiszpek 3 years ago
parent
commit
fdb0523090
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/Extracting/ParsesValidationRules.php

+ 1 - 3
src/Extracting/ParsesValidationRules.php

@@ -443,9 +443,7 @@ trait ParsesValidationRules
                     break;
                 case 'accepted_if':
                     $parameterData['type'] = 'boolean';
-                    $parameterData['description'] .= ' ' . $this->getDescription(
-                            $rule, [':other' => "<code>{$arguments[0]}</code>", ':value' => w::getListOfValuesAsFriendlyHtmlString(array_slice($arguments, 1))]
-                        ) . ' ';
+                    $parameterData['description'] .= " Must be accepted when <code>$arguments[0]</code> is " . w::getListOfValuesAsFriendlyHtmlString(array_slice($arguments, 1));
                     $parameterData['setter'] = fn() => true;
                     break;
                 case 'same':