Skip to content

fix(support): shuffle random array values#2145

Merged
innocenzi merged 1 commit into
tempestphp:3.xfrom
xHeaven:fix/support-random-shuffle
Jun 2, 2026
Merged

fix(support): shuffle random array values#2145
innocenzi merged 1 commit into
tempestphp:3.xfrom
xHeaven:fix/support-random-shuffle

Conversation

@xHeaven
Copy link
Copy Markdown
Member

@xHeaven xHeaven commented Jun 2, 2026

This PR fixes shuffle not shuffling. PHP’s native shuffle() mutates the input array, but this file defines its own shuffle() function, which returns a shuffled array instead. The return value was being discarded, making the call a no-op and leaving values in their original order.

@xHeaven xHeaven requested review from brendt and innocenzi as code owners June 2, 2026 14:00
@innocenzi innocenzi merged commit da49c20 into tempestphp:3.x Jun 2, 2026
75 checks passed
@innocenzi
Copy link
Copy Markdown
Member

Thanks!

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.

2 participants