use the correct validator function to check for errors, add a test for ShowController

This commit is contained in:
Nicky De Maeyer
2025-10-11 23:02:54 +02:00
parent a3bf845851
commit 2a4a98dd10
6 changed files with 118 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ class PaginationRequest extends ApiRequest
{
$validator->after(
function (Validator $validator): void {
if (!$validator->valid()) {
if ($validator->failed()) {
return;
}