Skip to content

Commit

Permalink
FormRequest: Don't emit warning message if subfields are present in e…
Browse files Browse the repository at this point in the history
…xtra data
  • Loading branch information
shalvah committed Apr 8, 2023
1 parent 5fbe5fc commit 112bba0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Extracting/ParsesValidationRules.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ public function getParametersFromValidationRules(array $validationRules, array $
$dependentRules = [];
foreach ($validationRules as $parameter => $ruleset) {
try {
if (count($customParameterData) && !isset($customParameterData[$parameter])) {
$parameterPlusDot = $parameter . '.';
if (count($customParameterData) && !isset($customParameterData[$parameter])
&& ! Arr::first(array_keys($customParameterData), fn ($key) => str_starts_with($key, $parameterPlusDot))
) {
c::debug($this->getMissingCustomDataMessage($parameter));
}
$userSpecifiedParameterInfo = $customParameterData[$parameter] ?? [];
Expand Down

0 comments on commit 112bba0

Please sign in to comment.