{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "\/opt\/php-tools\/vendor\/bin\/phpstan analyse src --level=5 --no-progress 2>&1 | tail -20",
"timeout": 120000,
"description": "Run PHPStan Level 5 analysis"
}
}
{
"tool_response": {
"stdout": " unused. \n 🪪 classConstant.unused \n 💡 See: \n https:\/\/phpstan.org\/developing-extensions\/always-used-class-constants \n 181 Expression on left side of ?? is not nullable. \n 🪪 nullCoalesce.expr \n 181 Using nullsafe method call on non-nullable type RuntimeException. Use \n -> instead. \n 🪪 nullsafe.neverNull \n ------ ----------------------------------------------------------------------- \n\n ------ ----------------------------------------------------------- \n Line Infrastructure\/Persistence\/ContractRepository.php \n ------ ----------------------------------------------------------- \n 203 Comparison operation \">\" between 0 and 0 is always false. \n 🪪 greater.alwaysFalse \n ------ ----------------------------------------------------------- \n\n [ERROR] Found 4 errors",
"stderr": "",
"interrupted": false,
"isImage": false
}
}