Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

Treat StringCollection as a list collection with the String element type - #28141

Merged
Dongbo Wang (daxian-dbw) merged 1 commit into
PowerShell:masterfrom
daxian-dbw:stringcollection-binding
Oct 9, 2026
Merged

Dongbo Wang (daxian-dbw) merged 1 commit into
PowerShell:masterfrom
daxian-dbw:stringcollection-binding

Conversation

@daxian-dbw

Copy link
Copy Markdown
Member

PR Summary

Fix #27969

Treat StringCollection as a list collection with the String element type.

PR Checklist

@daxian-dbw
Dongbo Wang (daxian-dbw) requested a review from a team as a code owner October 5, 2026 22:43
Copilot AI balanced review requested due to automatic review settings October 5, 2026 22:43
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@daxian-dbw Dongbo Wang (daxian-dbw) added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Oct 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The targeted binding fix is correct and includes coverage for the regression and preservation behavior.

Review effort: Balanced
Findings: None

What changed in this PR

Fixes scalar PSObject binding to StringCollection parameters by recognizing their string element type.

Changes:

  • Classifies StringCollection as an IList of strings.
  • Adds regression tests for scalar, multiple, and untyped-list binding.
File Description
src/​System.Management.Automation/​engine/​CompiledCommandParameter.cs Adds StringCollection element-type metadata.
test/​powershell/​Language/​Parser/​ParameterBinding.Tests.ps1 Adds parameter-binding regression coverage.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@jshigetomi Justin Chung (jshigetomi) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the targeted StringCollection parameter-binding fix and its regression coverage. No merge blockers found.

@daxian-dbw
Dongbo Wang (daxian-dbw) merged commit bcd1e69 into PowerShell:master Oct 9, 2026
37 of 38 checks passed
@daxian-dbw
Dongbo Wang (daxian-dbw) deleted the stringcollection-binding branch October 9, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport-7.7.x-Done CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Binary cmdlet binding fails to unwrap a scalar PSObject for StringCollection parameters

4 participants