|
14 | 14 | use Illuminate\Support\Traits\Tappable; |
15 | 15 | use JsonSerializable; |
16 | 16 | use RuntimeException; |
| 17 | + |
17 | 18 | use function app; |
18 | 19 | use function data_get; |
19 | 20 | use function data_set; |
@@ -107,7 +108,7 @@ public function fill(iterable $attributes): static |
107 | 108 | */ |
108 | 109 | public function toHtml(): mixed |
109 | 110 | { |
110 | | - throw new RuntimeException('No view is assigned to render the [' . static::class . '] alert.'); |
| 111 | + throw new RuntimeException('No view is assigned to render the ['.static::class.'] alert.'); |
111 | 112 | } |
112 | 113 |
|
113 | 114 | /** |
@@ -155,7 +156,7 @@ protected function data($key = null, $default = null): mixed |
155 | 156 | * @param TGetDefault|(\Closure(): TGetDefault) $default |
156 | 157 | * @return mixed|TGetDefault |
157 | 158 | */ |
158 | | - public function get(string|null $key, mixed $default = null): mixed |
| 159 | + public function get(?string $key, mixed $default = null): mixed |
159 | 160 | { |
160 | 161 | return data_get($this->attributes, $key, $default); |
161 | 162 | } |
@@ -225,7 +226,7 @@ public function __unset(string $key): void |
225 | 226 | * |
226 | 227 | * @codeCoverageIgnore |
227 | 228 | * |
228 | | - * @return array{persistenceKey: string|null, index: int, attributes: mixed} |
| 229 | + * @return array{persistenceKey: string|null, index: int, attributes: mixed} |
229 | 230 | */ |
230 | 231 | public function __serialize(): array |
231 | 232 | { |
@@ -337,7 +338,7 @@ public function setIndex(int $index): static |
337 | 338 | */ |
338 | 339 | public function pushToBag(): static |
339 | 340 | { |
340 | | - if (!isset($this->index)) { |
| 341 | + if (! isset($this->index)) { |
341 | 342 | app(Bag::class)->add($this); |
342 | 343 | } |
343 | 344 |
|
|
0 commit comments