Skip to content

Conversation

@felixarntz
Copy link
Member

Fixes #129

@felixarntz felixarntz added this to the 0.3.0 milestone Nov 26, 2025
@felixarntz felixarntz added the [Type] Enhancement A suggestion for improvement. label Nov 26, 2025
@github-actions
Copy link

github-actions bot commented Nov 26, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: felixarntz <flixos90@git.wordpress.org>
Co-authored-by: JasonTheAdams <jason_the_adams@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

* @param string|null $credentialsUrl The URL where users can get credentials.
*/
public function __construct(string $id, string $name, ProviderTypeEnum $type)
public function __construct(string $id, string $name, ProviderTypeEnum $type, ?string $credentialsUrl = null)
Copy link
Member

Choose a reason for hiding this comment

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

Now that this is four parameters long and we're starting to get into optional parameters, I'm curious if we should consider either an array as an optional fourth argument that can extend over time to include more, or if we should instead add a setter for things like this.

Another option is to stick with this for now and then change it to an array later if/when the time arrives and make this parameter backwards-compatible.

What do you think, @felixarntz?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'd say let's do the latter. It'll be easy to keep things backward compatible in the way you're saying.

Copy link
Member

@JasonTheAdams JasonTheAdams left a comment

Choose a reason for hiding this comment

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

LGTM! ✅

@JasonTheAdams JasonTheAdams merged commit 1e7ec2e into trunk Nov 26, 2025
11 checks passed
@JasonTheAdams JasonTheAdams deleted the add/provider-credentials-url branch November 26, 2025 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow specifying optional provider credentials URL in ProviderMetadata

3 participants