Repository navigation
DOC-7267 Add the fpha parameter to the Predis JSON.SET entry - #4509
Merged
Merged
Conversation
Predis 3.7.1 declares jsonset(string $key, string $path, string $value, ?string $subcommand = null, ?string $fpha = null) on ClientInterface, and the entry stopped at $subcommand. It now lists $fpha. Its fourth parameter was also stored as the name "?string $subcommand = null" with type Any, so it is now $subcommand of type ?string, like the other nullable parameters. Checked by building the command: JSONSET with arguments key, path, value, null, fp16 produces JSON.SET key path value FPHA FP16; with xx and BF16 it produces XX FPHA BF16; and fp8 throws UnexpectedValueException listing bf16, fp16, fp32 and fp64. The value is case-insensitive. Learned: Predis takes the NX or XX flag at argument position 4 and fpha at position 5, so fpha without a flag needs null in position 4 Gaps: 166 other php params store their type and default in the name (for example "?array $options = null" with type Any), not fixed here Ticket: DOC-7267 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
Contributor
🧠 Redis MemoryFound 5 related items from repository history (5 new this commit):
Memory updated at 4304922 |
dwdougherty
approved these changes
Nov 9, 2026
andy-stark-redis
added a commit
that referenced
this pull request
Nov 9, 2026
165 php params in 90 command files stored their whole declaration in the name field, for example "?array $options = null" or "string $index = 'byte'", with the type Any. They now follow the form the other php params use: the name is the variable ($options, or ...$keys for a variadic) and the type is the declared PHP type. The 11 untyped parameters, such as $start = null on BITCOUNT, get mixed like the existing untyped ones, and defaults stay in the signature text only. Signatures, descriptions and returns are untouched. The JSON.SET $subcommand param, the 166th, is fixed by the Predis fpha change (#4509), which edits the same entry. Each of the 165 text values appeared verbatim in its own entry's signature, and the result was checked against the @method declarations in Predis 3.7.1 ClientInterface: 161 params equal the declared name and type at the same position, and the other 4 belong to methods with no @method line, so they follow the entry's own signature. Learned: a php param whose name contains a space or an equals sign is a declaration the extractor failed to split, split it into name and type rather than leaving it in the name field Constraint: a variadic php param keeps the leading ... on its name and the bare type, as INFO and PFCOUNT already do Gaps: 98 php entries still differ from their @method line in param types, mostly Any or string where the declaration says mixed, these were not in scope Ticket: DOC-7267 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
andy-stark-redis
added a commit
that referenced
this pull request
Nov 9, 2026
165 php params in 90 command files stored their whole declaration in the name field, such as "?array $options = null" with type Any. They now follow the form the other php params use: the name is the variable ($options, or ...$keys for a variadic) and the type is the declared PHP type. The 11 untyped parameters get mixed like the existing untyped ones, and defaults stay in the signature text only. Signatures, descriptions and returns are untouched. The JSON.SET $subcommand param, the 166th, is fixed by #4509, which edits the same entry. Each of the 165 values appeared verbatim in its own entry's signature, and the result was checked against the @method declarations in Predis 3.7.1 ClientInterface: 161 params equal the declared name and type at the same position, and the other 4 belong to methods with no @method line, so they follow the entry's own signature. Learned: a php param whose name contains a space or an equals sign is a declaration the extractor failed to split, split it into name and type rather than leaving it in the name field Constraint: a variadic php param keeps the leading ... on its name and the bare type, as INFO and PFCOUNT already do Ticket: DOC-7267 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the
fphaparameter to the Predis JSON.SET entry, the last known gap in the Predis data. Predis 3.7.1 declaresjsonset(string $key, string $path, string $value, ?string $subcommand = null, ?string $fpha = null), and the entry stopped at$subcommand.The entry's fourth parameter was also stored with the name
?string $subcommand = nulland typeAny. It's now$subcommandof type?string.Review notes
key, path, value, null, fp16produceJSON.SET key path value FPHA FP16. WithxxandBF16they produceXX FPHA BF16.fp8throwsUnexpectedValueException. The value is case-insensitive.?array $options = nullwith typeAny(GEORADIUS). That's a separate cleanup, and I'd check each againstClientInterfacefirst.🤖 Generated with Claude Code
Note
Low Risk
Documentation-only changes to command API mapping JSON; no runtime code paths.
Overview
Updates the Predis/PHP
JSON.SETmapping sojsonsetmatches Predis 3.7.1: the signature gains optional$fpha, and the mergedcommand-api-mapping.jsonis kept in sync via the per-commandJSON.SET.jsonfile.The fourth argument is normalized from a malformed param name/type to
$subcommandas?string, with a short note that it accepts NX/XX. The new fifth param documents FPHA (BF16, FP16, FP32, FP64, case-insensitive).Reviewed by Cursor Bugbot for commit 4304922. Bugbot is set up for automated code reviews on this repo. Configure here.