Skip to content

Commit fb42075

Browse files
committed
fx
1 parent 21b0ff2 commit fb42075

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Options/AbstractOption.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ abstract public function data(): array;
4444
*/
4545
public function value(): string
4646
{
47-
$data = array_map('strval', $this->data());
47+
$data = [$this->name(), ...$this->data()];
4848

49-
array_unshift($data, $this->name());
49+
// Convert all values to string explicitly
50+
$data = array_map(static fn($v) => (string) $v, $data);
5051

5152
// Remove empty options from end.
5253
return rtrim(implode(':', $data), ':');

0 commit comments

Comments
 (0)