Skip to content

Commit 621ff5d

Browse files
authored
Add return types to banner functions (#1565)
1 parent b451e8e commit 621ff5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/JetstreamServiceProvider.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,23 +53,23 @@ public function boot()
5353
$this->configureRoutes();
5454
$this->configureCommands();
5555

56-
RedirectResponse::macro('banner', function ($message) {
56+
RedirectResponse::macro('banner', function ($message): RedirectResponse {
5757
/** @var \Illuminate\Http\RedirectResponse $this */
5858
return $this->with('flash', [
5959
'bannerStyle' => 'success',
6060
'banner' => $message,
6161
]);
6262
});
6363

64-
RedirectResponse::macro('warningBanner', function ($message) {
64+
RedirectResponse::macro('warningBanner', function ($message): RedirectResponse {
6565
/** @var \Illuminate\Http\RedirectResponse $this */
6666
return $this->with('flash', [
6767
'bannerStyle' => 'warning',
6868
'banner' => $message,
6969
]);
7070
});
7171

72-
RedirectResponse::macro('dangerBanner', function ($message) {
72+
RedirectResponse::macro('dangerBanner', function ($message): RedirectResponse {
7373
/** @var \Illuminate\Http\RedirectResponse $this */
7474
return $this->with('flash', [
7575
'bannerStyle' => 'danger',

0 commit comments

Comments
 (0)