diff --git a/src/Support/Html/Mixins/BaseElementMixin.php b/src/Support/Html/Mixins/BaseElementMixin.php
index d60c027..d1c535a 100644
--- a/src/Support/Html/Mixins/BaseElementMixin.php
+++ b/src/Support/Html/Mixins/BaseElementMixin.php
@@ -17,7 +17,7 @@ public function crossorigin(): mixed
public function ignore(): mixed
{
- return function (?bool $self = false): BaseElement {
+ return function (?bool $self = false) {
/** @var BaseElement $this */
return $self
? $this->attribute('wire:ignore.self')
@@ -27,7 +27,7 @@ public function ignore(): mixed
public function wireKey(): mixed
{
- return function (?string $value = null): BaseElement {
+ return function (?string $value = null) {
/** @var BaseElement $this */
return $this->attribute('wire:key', $value);
};
@@ -35,7 +35,7 @@ public function wireKey(): mixed
public function wireModel(): mixed
{
- return function (string $key, ?string $modifiers = null): BaseElement {
+ return function (string $key, ?string $modifiers = null) {
/** @var BaseElement $this */
$directive = str('wire:model')
->when($modifiers, fn (Stringable $str) => $str->append(".{$modifiers}"))
diff --git a/src/Support/Html/Mixins/HtmlExtendedMixin.php b/src/Support/Html/Mixins/HtmlExtendedMixin.php
index 9feecc3..01b7de7 100644
--- a/src/Support/Html/Mixins/HtmlExtendedMixin.php
+++ b/src/Support/Html/Mixins/HtmlExtendedMixin.php
@@ -13,7 +13,7 @@ class HtmlExtendedMixin
public function wireForm(): mixed
{
- return function (Livewire $form, ?string $action = null): Form {
+ return function (Livewire $form, ?string $action = null) {
$this->form = $form;
return Form::create()
@@ -23,7 +23,7 @@ public function wireForm(): mixed
public function closeWireForm(): mixed
{
- return function (): Form {
+ return function () {
$this->form = null;
return Form::create()->close();
@@ -39,7 +39,7 @@ public function icon(): mixed
public function validate(): mixed
{
- return function (string $field, ?string $message = null): mixed {
+ return function (string $field, ?string $message = null) {
$messageBag = $this->form?->getErrorBag();
$hasMessage = $messageBag?->has($field);
diff --git a/src/Support/Html/Mixins/LinkElementMixin.php b/src/Support/Html/Mixins/LinkElementMixin.php
index 201331b..3eb596c 100644
--- a/src/Support/Html/Mixins/LinkElementMixin.php
+++ b/src/Support/Html/Mixins/LinkElementMixin.php
@@ -8,7 +8,7 @@ class LinkElementMixin
{
public function route(): mixed
{
- return function (string $route, ...$parameters): A {
+ return function (string $route, ...$parameters) {
/** @var A $this */
$href = route($route, ...$parameters);
@@ -24,7 +24,7 @@ public function route(): mixed
public function navigate(): mixed
{
- return function (): A {
+ return function () {
/** @var A $this */
return $this->attribute('wire:navigate');
};