mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-08 06:08:40 +02:00
fix suffixCopy & hintCopy $state
This commit is contained in:
parent
5d8a8316bb
commit
e4d28d2333
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user