fix(php): keep model namespace for allOf-wrapped $ref in items and params #25373
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.46) × (1 − Review Confidence (0.41)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 256 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.332
Real PR Conversation Timeline
1 comments
"Review active on #25373"
general
weight: 0.35
princejain756
Fixes #25354.
A single-member
allOfaround a model reference can lose the PHP namespace when used as an array item or query parameter. The generated declaration becomes\PhpModelError[]instead of\php\Model\Error[].toAllOfName()returns a type declaration that already contains namespace separators. Passing it throughtoModelName()again removes those separators. This change resolves a single-memberallOfthrough its member, or resolves an explicitx-all-of-nameas a qualified model name.The regression test covers array items, query parameters, and the named override.
Validation Correction
I checked the build and sample-generation box too early. The earlier sample run reused an older CLI JAR, so its zero-diff result did not verify this patch.
Fresh verification of commit
2760f0a8ca2c02aac8d13ea2cba08aec2460921b, in an isolated checkout with JDK 11.0.27:CustomError.The full clean package build and all-language sample and documentation generation were not run. These are PHP-scoped results.
PR Checklist
AI assisted the implementation and test execution.