Skip to content

Update doc snippets to the array form (no variadic)#55

Merged
Spomky merged 1 commit into5.4from
refactor/no-variadic-on-helpers
May 6, 2026
Merged

Update doc snippets to the array form (no variadic)#55
Spomky merged 1 commit into5.4from
refactor/no-variadic-on-helpers

Conversation

@Spomky
Copy link
Copy Markdown
Collaborator

@Spomky Spomky commented May 6, 2026

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 for withAttestationFormats, withHints, withPubKeyCredParams, withAllowCredentials updated to (array).
  • symfony-bundle/verification-helpers.md — setter table entry for withAllowedOrigins updated to (array); the withAllowedOrigins('...') snippet now passes a list literal; the withSignals(...array_filter(...)) example becomes withSignals(..., 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 — every withSignals(\$payload, \$signalA, \$signalB) call in the SuccessHandler / FailureHandler / Authenticator examples is rewritten as withSignals(\$payload, [\$signalA, \$signalB]). The early-return path now passes an empty array (withSignals(\$payload, [])).

@Spomky Spomky self-assigned this May 6, 2026
@Spomky Spomky merged commit d6d5136 into 5.4 May 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant