We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21b0ff2 commit fb42075Copy full SHA for fb42075
1 file changed
src/Options/AbstractOption.php
@@ -44,9 +44,10 @@ abstract public function data(): array;
44
*/
45
public function value(): string
46
{
47
- $data = array_map('strval', $this->data());
+ $data = [$this->name(), ...$this->data()];
48
49
- array_unshift($data, $this->name());
+ // Convert all values to string explicitly
50
+ $data = array_map(static fn($v) => (string) $v, $data);
51
52
// Remove empty options from end.
53
return rtrim(implode(':', $data), ':');
0 commit comments