Skip to content

Commit

Permalink
Fix missing return in assertOnlyInvalid (#54941)
Browse files Browse the repository at this point in the history
  • Loading branch information
parth391 authored Mar 10, 2025
1 parent 63919de commit 7ddf5ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Testing/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -1405,6 +1405,8 @@ public function assertOnlyInvalid($errors = null, $errorBag = 'default', $respon
count($unexpectedErrorKeys) === 0,
'Response has unexpected validation errors: '.collect($unexpectedErrorKeys)->keys()->map(fn ($key) => "'{$key}'")->join(', ')
);

return $this;
}

/**
Expand Down

0 comments on commit 7ddf5ae

Please sign in to comment.