Skip to content

Commit 646b1ed

Browse files
committed
RequiredArguments fix if
1 parent 778c359 commit 646b1ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Request/RequiredArguments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function __get($name): string|array
1616
}
1717
public static function validate(array $requiredArguments, ?array $where): static
1818
{
19-
if ((!empty($requiredArguments) && !empty($where)) && count($requiredArguments) > count($where)) {
19+
if ((!empty($requiredArguments) && !empty($where)) && count($requiredArguments) >= count($where)) {
2020
$class = new static();
2121
foreach ($requiredArguments as $argument) {
2222
$class->with($argument, $where[$argument] ?? new RequiredArgumentMissingException($requiredArguments));

0 commit comments

Comments
 (0)