Skip to content

Conversation

@CicerBro
Copy link
Contributor

Guard the scan() unpacks so PHP 8.5 can no longer blow up when Redis returns false.

Fixes: #57908

Guard the scan() unpacks so PHP 8.5 can no longer blow up when Redis returns false.

Fixes: laravel#57908
@taylorotwell taylorotwell merged commit 5defc4c into laravel:12.x Nov 25, 2025
76 checks passed
@shaedrich
Copy link
Contributor

@macropay-solutions Or just

                [$cursor, $tagsChunk] = $connection->scan(
                    $cursor,
                    ['match' => $prefix.'tag:*:entries', 'count' => $chunkSize]
-               );
+               ) ?: [null, null];

@CicerBro CicerBro deleted the patch-1 branch November 26, 2025 14:49
macropay-solutions pushed a commit to macropay-solutions/maravel-framework that referenced this pull request Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Redis] Cannot use bool as array on PHP 8.5

3 participants