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 b8cfef1 commit 0dcd59dCopy full SHA for 0dcd59d
src/Laravel/Tests/GraphQlTest.php
@@ -83,7 +83,7 @@ public function testGetBooksWithPaginationAndOrder(): void
83
// Create books in reverse alphabetical order to test the 'asc' order
84
BookFactory::new()
85
->count(10)
86
- ->sequence(static fn ($sequence) => ['name' => \chr((int) (122 - $sequence->index))]) // ASCII codes starting from 'z'
+ ->sequence(static fn ($sequence) => ['name' => \chr(max(0, min(255, 122 - (int) $sequence->index)))]) // ASCII codes starting from 'z'
87
->has(AuthorFactory::new())
88
->create();
89
0 commit comments