Skip to content

Commit

Permalink
added confirmed rule handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Čerljenko committed Sep 1, 2021
1 parent 55ff90d commit 679c78a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/ExportPostmanCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function handle(): void
$rulesParameter = collect($reflectionMethod->getParameters())
->filter(function ($value, $key) {
$value = $value->getType();

return $value && is_subclass_of($value->getName(), FormRequest::class);
})
->first();
Expand All @@ -103,7 +103,7 @@ public function handle(): void
}

if (in_array('confirmed', $rule)) {
$requestRules[] = $fieldName . '_confirmation';
$requestRules[] = $fieldName.'_confirmation';
}
}
}
Expand Down

0 comments on commit 679c78a

Please sign in to comment.