mirror of
https://github.com/symfony/ai-ollama-platform.git
synced 2026-03-23 23:22:07 +01:00
Make closures static where possible
🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
@@ -47,7 +47,7 @@ final class AssistantMessageNormalizer extends ModelContractNormalizer implement
|
||||
return [
|
||||
'role' => Role::Assistant,
|
||||
'content' => $data->getContent() ?? '',
|
||||
'tool_calls' => array_values(array_map(function (ToolCall $message): array {
|
||||
'tool_calls' => array_values(array_map(static function (ToolCall $message): array {
|
||||
return [
|
||||
'type' => 'function',
|
||||
'function' => [
|
||||
|
||||
Reference in New Issue
Block a user