From e4d28d2333b69deee7cadf7ab1e70a8387f97058 Mon Sep 17 00:00:00 2001 From: Boy132 Date: Wed, 13 Aug 2025 14:54:54 +0200 Subject: [PATCH] fix suffixCopy & hintCopy $state --- app/Providers/AppServiceProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 891084f0c..a925c61f5 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -153,12 +153,12 @@ class AppServiceProvider extends ServiceProvider Field::macro('suffixCopy', function () { /** @var TextInput $this */ - return $this->suffixAction(fn (string $state) => request()->isSecure() ? CopyAction::make()->copyable($state) : null); // @phpstan-ignore varTag.nativeType + return $this->suffixAction(fn (?string $state) => request()->isSecure() ? CopyAction::make()->copyable($state) : null); // @phpstan-ignore varTag.nativeType }); Field::macro('hintCopy', function () { /** @var Field $this */ - return $this->hintAction(fn (string $state) => request()->isSecure() ? CopyAction::make()->copyable($state) : null); // @phpstan-ignore varTag.nativeType + return $this->hintAction(fn (?string $state) => request()->isSecure() ? CopyAction::make()->copyable($state) : null); // @phpstan-ignore varTag.nativeType }); // Don't run any health checks during tests