diff --git a/docs/general-usage/element-classes.md b/docs/general-usage/element-classes.md index 6e037fc..fabc3f9 100644 --- a/docs/general-usage/element-classes.md +++ b/docs/general-usage/element-classes.md @@ -54,6 +54,7 @@ echo Element::withTag('p')->text('This is the content!'); - `function action(?string $action)` - `function autocomplete(bool|string $autocomplete = true)` - `function method(?string $method)` +- `function name(?string $name)` - `function novalidate($novalidate = true)` - `function target(string $target)` diff --git a/src/Elements/Attributes/Name.php b/src/Elements/Attributes/Name.php index d9aa6b7..f33a212 100644 --- a/src/Elements/Attributes/Name.php +++ b/src/Elements/Attributes/Name.php @@ -5,7 +5,7 @@ trait Name { /** - * @param string $name + * @param string|null $name * * @return static */