Skip to content

Commit 0dcd59d

Browse files
Maxcastelsoyuka
authored andcommitted
chore: PHPStan error (#7751)
1 parent b8cfef1 commit 0dcd59d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Laravel/Tests/GraphQlTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function testGetBooksWithPaginationAndOrder(): void
8383
// Create books in reverse alphabetical order to test the 'asc' order
8484
BookFactory::new()
8585
->count(10)
86-
->sequence(static fn ($sequence) => ['name' => \chr((int) (122 - $sequence->index))]) // ASCII codes starting from 'z'
86+
->sequence(static fn ($sequence) => ['name' => \chr(max(0, min(255, 122 - (int) $sequence->index)))]) // ASCII codes starting from 'z'
8787
->has(AuthorFactory::new())
8888
->create();
8989

0 commit comments

Comments
 (0)