Update doc snippets to the array form (no variadic)#55
Merged
Conversation
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
Documents web-auth/webauthn-framework#886 by updating every snippet that called the helper API with the variadic form (
...\$args) to the new explicit-array form.symfony-bundle/options-helpers.md— setter table entries forwithAttestationFormats,withHints,withPubKeyCredParams,withAllowCredentialsupdated to(array).symfony-bundle/verification-helpers.md— setter table entry forwithAllowedOriginsupdated to(array); thewithAllowedOrigins('...')snippet now passes a list literal; thewithSignals(...array_filter(...))example becomeswithSignals(..., array_values(array_filter(...))).migration/from-v5.x-to-v6.0.md— the multi-origin migration example drops the spread operator (->withAllowedOrigins(\$this->origins)instead of->withAllowedOrigins(...\$this->origins)).pure-php/advanced-behaviours/signal-api.md— everywithSignals(\$payload, \$signalA, \$signalB)call in the SuccessHandler / FailureHandler / Authenticator examples is rewritten aswithSignals(\$payload, [\$signalA, \$signalB]). The early-return path now passes an empty array (withSignals(\$payload, [])).