{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "\/opt\/php-tools\/vendor\/bin\/phpstan analyse src --level=7 --no-progress 2>&1 | head -80",
"timeout": 120000,
"description": "Run PHPStan Level 7 analysis"
}
}
{
"tool_response": {
"stdout": "Note: Using configuration file \/var\/www\/dev.campus.systemische-tools.de\/phpstan.neon.\n ------ --------------------------------------------------------- \n Line Controller\/Api\/ChatController.php \n ------ --------------------------------------------------------- \n 81 Cannot call method fetchColumn() on PDOStatement|false. \n 🪪 method.nonObject \n 82 Cannot call method fetchColumn() on PDOStatement|false. \n 🪪 method.nonObject \n 83 Cannot call method fetchColumn() on PDOStatement|false. \n 🪪 method.nonObject \n 84 Cannot call method fetchColumn() on PDOStatement|false. \n 🪪 method.nonObject \n 85 Cannot call method fetchColumn() on PDOStatement|false. \n 🪪 method.nonObject \n 86 Cannot call method fetchColumn() on PDOStatement|false. \n 🪪 method.nonObject \n ------ --------------------------------------------------------- \n\n ------ ----------------------------------------------------------------------- \n Line Controller\/ChatController.php \n ------ ----------------------------------------------------------------------- \n 289 Method Controller\\ChatController::getSession() return type has no \n value type specified in iterable type array. \n 🪪 missingType.iterableValue \n 💡 See: \n https:\/\/phpstan.org\/blog\/solving-phpstan-no-value-type-specified-in-i \n terable-type \n 301 Method Controller\\ChatController::getSessions() return type has no \n value type specified in iterable type array. \n 🪪 missingType.iterableValue \n 💡 See: \n https:\/\/phpstan.org\/blog\/solving-phpstan-no-value-type-specified-in-i \n terable-type \n 315 Cannot call method fetchAll() on PDOStatement|false. \n 🪪 method.nonObject \n 321 Method Controller\\ChatController::getAuthorProfiles() return type has \n no value type specified in iterable type array. \n 🪪 missingType.iterableValue \n 💡 See: \n https:\/\/phpstan.org\/blog\/solving-phpstan-no-value-type-specified-in-i \n terable-type \n 330 Cannot call method fetchAll() on PDOStatement|false. \n 🪪 method.nonObject \n 336 Method Controller\\ChatController::getAuthorProfile() return type has \n no value type specified in iterable type array. \n 🪪 missingType.iterableValue \n 💡 See: \n https:\/\/phpstan.org\/blog\/solving-phpstan-no-value-type-specified-in-i \n terable-type \n 352 Method Controller\\ChatController::getSystemPrompts() return type has \n no value type specified in iterable type array. \n 🪪 missingType.iterableValue \n 💡 See: \n https:\/\/phpstan.org\/blog\/solving-phpstan-no-value-type-specified-in-i \n terable-type \n 361 Cannot call method fetchAll() on PDOStatement|false. \n 🪪 method.nonObject \n 367 Method Controller\\ChatController::getMessages() return type has no \n value type specified in iterable type array. \n 🪪 missingType.iterableValue \n 💡 See: \n https:\/\/phpstan.org\/blog\/solving-phpstan-no-value-type-specified-in-i \n terable-type \n 612 Method Controller\\ChatController::renderResponse() has parameter \n $result with no value type specified in iterable type array. \n 🪪 missingType.iterableValue \n 💡 See: \n https:\/\/phpstan.org\/blog\/solving-phpstan-no-value-type-specified-in-i \n terable-type \n ------ ----------------------------------------------------------------------- \n\n ------ ----------------------------------------------------------------------- \n Line Controller\/ConfigController.php \n ------ ----------------------------------------------------------------------- \n 274 Method Controller\\ConfigController::findById() return type has no \n value type specified in iterable type array. \n 🪪 missingType.iterableValue \n 💡 See: \n https:\/\/phpstan.org\/blog\/solving-phpstan-no-value-type-specified-in-i \n terable-type",
"stderr": "",
"interrupted": false,
"isImage": false
}
}