Skip to content

Commit

Permalink
Do not set return types
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 committed Jul 12, 2024
1 parent 82b2fa9 commit 49209a4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/Support/Html/Mixins/BaseElementMixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -27,15 +27,15 @@ 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);
};
}

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}"))
Expand Down
6 changes: 3 additions & 3 deletions src/Support/Html/Mixins/HtmlExtendedMixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -23,7 +23,7 @@ public function wireForm(): mixed

public function closeWireForm(): mixed
{
return function (): Form {
return function () {
$this->form = null;

return Form::create()->close();
Expand All @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/Support/Html/Mixins/LinkElementMixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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');
};
Expand Down

0 comments on commit 49209a4

Please sign in to comment.