{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "\/opt\/php-tools\/vendor\/bin\/phpstan analyse --no-progress --level=5 \/var\/www\/dev.campus.systemische-tools.de\/src\/UseCases\/Chat\/ChatResponse.php \/var\/www\/dev.campus.systemische-tools.de\/src\/UseCases\/Chat\/SendChatMessageUseCase.php \/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ChatController.php 2>&1 | head -50",
"description": "Run PHPStan analysis"
}
}
{
"tool_response": {
"stdout": "Note: Using configuration file \/var\/www\/dev.campus.systemische-tools.de\/phpstan.neon.\n ------ ----------------------------------------------------------------------- \n Line UseCases\/Chat\/SendChatMessageUseCase.php \n ------ ----------------------------------------------------------------------- \n 164 Offset 'answer' on array{question: string, answer: string, sources: \n array<int, array{title: string, score: float, content?: string}>, mod \n el: string, usage?: array{input_tokens: int, output_tokens: int}, \n chunks_used: int} on left side of ?? always exists and is not \n nullable. \n 🪪 nullCoalesce.offset \n 165 Offset 'sources' on array{question: string, answer: string, sources: \n array<int, array{title: string, score: float, content?: string}>, mod \n el: string, usage?: array{input_tokens: int, output_tokens: int}, \n chunks_used: int} on left side of ?? always exists and is not \n nullable. \n 🪪 nullCoalesce.offset \n ------ ----------------------------------------------------------------------- \n\n\n [ERROR] Found 2 errors",
"stderr": "",
"interrupted": false,
"isImage": false
}
}