Skip to content

Commit

Permalink
fix stan error
Browse files Browse the repository at this point in the history
  • Loading branch information
taka-oyama committed Nov 8, 2024
1 parent 9289bff commit bff2c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/SharedGrammarCalls.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected function wrapValue($value)
*/
protected function formatOptions(array $options, string $delimiter = '='): string
{
$mapped = Arr::map($options, function (mixed $v, string $k) use ($delimiter): string {
$mapped = Arr::map($options, function (int|float|bool|string|BackedEnum $v, string $k) use ($delimiter): string {
return Str::snake($k) . $delimiter . $this->formatOptionValue($v);
});
return implode(', ', $mapped);
Expand Down

0 comments on commit bff2c79

Please sign in to comment.