Skip to content

Commit 369e457

Browse files
committed
wip
1 parent 9f52cd4 commit 369e457

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Http/Controllers/LaravelPlaywrightController.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,11 @@ protected function buildUpStateAttributes($state): array
263263

264264
if (str_contains($attribute, '[') && str_contains($attribute, ']')) {
265265
[$alias, $options] = explode($aliasSeparator, $attribute);
266-
$options = str($options)->remove('[')->remove(']')->explode($paramSeparator);
266+
$options = str($options)
267+
->remove('[')
268+
->remove(']')
269+
->explode($paramSeparator)
270+
->map(fn($option) => trim($option));
267271
return value($this->resolveParamAlias($alias), ...$options);
268272
}
269273

0 commit comments

Comments
 (0)