From 344ea4e11fc11845f69079ac8693ebaac42b39e8 Mon Sep 17 00:00:00 2001 From: lee-to Date: Wed, 2 Oct 2024 13:59:19 +0000 Subject: [PATCH] [rector] Rector fixes --- src/UI/src/Traits/HasAsync.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ); }