Skip to content

Commit 1744d66

Browse files
committed
Fix deprecated warning
1 parent d9c7fa2 commit 1744d66

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Support/Blade/Bladeable.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static function classMerged(ComponentAttributeBag $attributeBag, ?array $
1212
$values ??= static::classAttributes($attributeBag);
1313

1414
return collect($values)
15-
->map(function (mixed $value = null, int|string $key) use ($attributeBag) {
15+
->map(function (mixed $value, int|string $key) use ($attributeBag) {
1616
if (is_bool($value) && $value === false) {
1717
return;
1818
}
@@ -27,7 +27,8 @@ public static function classMerged(ComponentAttributeBag $attributeBag, ?array $
2727

2828
public static function classAttributes(ComponentAttributeBag $attributeBag): Collection
2929
{
30-
return str($attributeBag->whereStartsWith('class:'))->matchAll('/class:(.*?)\=/s');
30+
return str($attributeBag->whereStartsWith('class:'))
31+
->matchAll('/class:(.*?)\=/s');
3132
}
3233

3334
public static function classKeys(...$keys): Collection

0 commit comments

Comments
 (0)