We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ed3ba4 commit 2020814Copy full SHA for 2020814
guide/src/macros/impl.md
@@ -38,7 +38,7 @@ be named `self_`. This can also be used to return a reference to `$this`.
38
39
The rest of the options are passed as separate attributes:
40
41
-- `#[php(defaults(i = 5, b = "hello")]` - Sets the default value for parameter(s).
+- `#[php(defaults(i = 5, b = "hello"))]` - Sets the default value for parameter(s).
42
- `#[php(optional = i)]` - Sets the first optional parameter. Note that this also sets
43
the remaining parameters as optional, so all optional parameters must be a
44
variant of `Option<T>`.
0 commit comments