diff --git a/src/UI/src/Traits/HasAsync.php b/src/UI/src/Traits/HasAsync.php index 9faafb1ac..c2fd6c409 100644 --- a/src/UI/src/Traits/HasAsync.php +++ b/src/UI/src/Traits/HasAsync.php @@ -28,7 +28,7 @@ public function isAsync(): bool public function whenAsync(Closure $callback): static { return $this->when( - fn() => $this->getCore()->getRequest()->get('_component_name') === $this->getName(), + fn(): bool => $this->getCore()->getRequest()->get('_component_name') === $this->getName(), fn() => $callback($this) ); }