Skip to content

Commit 16ac8d0

Browse files
Merge pull request #94 from TheDragonCode/3.x
Beautiful::components(): Return value must be of type Illuminate\Console\View\Components\Factory, Illuminate\Support\Optional returned
2 parents 3d5abab + f7f74f0 commit 16ac8d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Notifications/Beautiful.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use Closure;
88
use Illuminate\Console\View\Components\Factory;
9+
use Illuminate\Support\Optional;
910

1011
class Beautiful extends Notification
1112
{
@@ -36,7 +37,7 @@ public function twoColumn(string $first, string $second): void
3637
$this->components()->twoColumnDetail($first, $second, $this->verbosity);
3738
}
3839

39-
protected function components(): Factory
40+
protected function components(): Factory|Optional
4041
{
4142
if (! is_null($this->components)) {
4243
return $this->components;

0 commit comments

Comments
 (0)