named-arguments
Installation
SKILL.md
PHP Named Arguments
When to use
- The user wants a call with bare
true/falseor unlabeled literals to read clearly on PHP 8.0+. - The user calls a constructor or function that takes many same-typed parameters and wants call sites to stay self-documenting on PHP 8.0+.
- The user calls a function with several optional parameters but only wants to set a later one on PHP 8.0+.
When NOT to use
- Do not use named arguments when the target runtime is PHP 7.4 or earlier; use positional arguments or an options array instead.
- Do not use this skill when a call has a single, self-evident argument where a name adds noise, not clarity.