We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 778c359 commit 646b1edCopy full SHA for 646b1ed
src/Request/RequiredArguments.php
@@ -16,7 +16,7 @@ public function __get($name): string|array
16
}
17
public static function validate(array $requiredArguments, ?array $where): static
18
{
19
- if ((!empty($requiredArguments) && !empty($where)) && count($requiredArguments) > count($where)) {
+ if ((!empty($requiredArguments) && !empty($where)) && count($requiredArguments) >= count($where)) {
20
$class = new static();
21
foreach ($requiredArguments as $argument) {
22
$class->with($argument, $where[$argument] ?? new RequiredArgumentMissingException($requiredArguments));
0 commit comments