fix suffixCopy & hintCopy $state

This commit is contained in:
Boy132 2025-08-13 14:54:54 +02:00
parent 5d8a8316bb
commit e4d28d2333

View File

@ -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