$value * @return mixed */ public function formatValue(mixed $value): mixed { if (!\is_array($value)) { throw new \InvalidArgumentException('Only arrays are supported'); } return implode(', ', $value); // @phpstan-ignore argument.type } }