Skip to content

Add normalizeVariadic to RPUSHX and LPUSHX commands - #1633

Merged
vladvildanov merged 3 commits into
predis:mainfrom
QDenka:fix/rpushx-lpushx-normalize-variadic
Feb 11, 2026
Merged

vladvildanov merged 3 commits into
predis:mainfrom
QDenka:fix/rpushx-lpushx-normalize-variadic

Conversation

@QDenka

@QDenka QDenka commented Feb 8, 2026

Copy link
Copy Markdown

Summary

RPUSHX and LPUSHX commands were missing the setArguments method with normalizeVariadic call, unlike their RPUSH and LPUSH counterparts.

This caused errors when passing values as an array:

$client->rpushx('key', ['value1', 'value2']);

Changes

  • Added setArguments() with normalizeVariadic() to RPUSHX and LPUSHX commands
  • Added testFilterArgumentsValuesAsSingleArray tests for both commands

Fixes #1504

RPUSHX and LPUSHX commands were missing the setArguments method
with normalizeVariadic call, unlike their RPUSH and LPUSH counterparts.
This caused errors when passing values as a single array argument
(e.g. $client->rpushx('key', ['val1', 'val2'])).

Fixes predis#1504
@QDenka
QDenka requested a review from a team as a code owner February 8, 2026 10:40
@coveralls

coveralls commented Feb 8, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 92.86% (+0.004%) from 92.856%
when pulling ce3e36c on QDenka:fix/rpushx-lpushx-normalize-variadic
into 861bde0 on predis:main.

@tillkruss

Copy link
Copy Markdown
Member

Time for a release soon?

@vladvildanov

Copy link
Copy Markdown
Contributor

@tillkruss Let's release along with Redis 8.6, it should happen this week

@vladvildanov
vladvildanov merged commit 5d85628 into predis:main Feb 11, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Not work command RPUSHX

4 participants