{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "\/var\/www\/scripts\/php-check.sh \/var\/www\/dev.campus.systemische-tools.de 2>&1 | grep -A 300 \"PHPStan\"",
"timeout": 120000,
"description": "Run final quality check"
}
}
{
"tool_response": {
"stdout": "\u001b[1;33m[1\/5] PHPStan - Static Analysis + Strict Rules\u001b[0m\n ------ ----------------------------------------------- \n Line src\/Controller\/ChatController.php \n ------ ----------------------------------------------- \n 188 Call to an undefined method \n Domain\\Entity\\ChatSession::getSystemPrompt(). \n πͺͺ method.notFound \n ------ ----------------------------------------------- \n\n ------ ----------------------------------------------------------------------- \n Line src\/Domain\/ValueObject\/SessionMetadata.php \n ------ ----------------------------------------------------------------------- \n 75 PHPDoc tag @param references unknown parameter: $collections \n πͺͺ parameter.notFound \n 130 Call to function is_string() with string will always evaluate to \n true. \n πͺͺ function.alreadyNarrowedType \n π‘ Because the type is coming from a PHPDoc, you can turn off this \n check by setting treatPhpDocTypesAsCertain: false in your \/opt\/php-to \n ols\/phpstan.neon. \n ------ ----------------------------------------------------------------------- \n\n ------ ----------------------------------------------------------------------- \n Line src\/Infrastructure\/Docs\/ChunkAnalysisService.php \n ------ ----------------------------------------------------------------------- \n 73 Method Infrastructure\\Docs\\ChunkAnalysisService::analyzeAllPending() \n should return array{analyzed: int, failed: int, errors: array<string> \n } but returns array{processed: int, failed: int, errors: array<string \n >}. \n πͺͺ return.type \n π‘ Array does not have offset 'analyzed'. \n ------ ----------------------------------------------------------------------- \n\n ------ ---------------------------------------------------------------------- \n Line src\/UseCases\/Chat\/ExportChatSessionUseCase.php \n ------ ---------------------------------------------------------------------- \n 43 Call to an undefined method Domain\\Entity\\ChatMessage::getRole(). \n πͺͺ method.notFound \n 46 Call to an undefined method Domain\\Entity\\ChatMessage::getContent(). \n πͺͺ method.notFound \n 49 Call to an undefined method Domain\\Entity\\ChatMessage::getContent(). \n πͺͺ method.notFound \n 51 Call to an undefined method Domain\\Entity\\ChatMessage::getSources(). \n πͺͺ method.notFound \n 92 Call to an undefined method Domain\\Entity\\ChatMessage::getRole(). \n πͺͺ method.notFound \n 93 Call to an undefined method Domain\\Entity\\ChatMessage::getContent(). \n πͺͺ method.notFound \n 94 Call to an undefined method \n Domain\\Entity\\ChatMessage::getCreatedAt(). \n πͺͺ method.notFound \n 97 Call to an undefined method Domain\\Entity\\ChatMessage::getRole(). \n πͺͺ method.notFound \n 98 Call to an undefined method Domain\\Entity\\ChatMessage::getSources(). \n πͺͺ method.notFound \n 105 Call to an undefined method \n Domain\\Entity\\ChatMessage::getTokensInput(). \n πͺͺ method.notFound \n 106 Call to an undefined method \n Domain\\Entity\\ChatMessage::getTokensOutput(). \n πͺͺ method.notFound \n 108 Call to an undefined method Domain\\Entity\\ChatMessage::getModel(). \n πͺͺ method.notFound \n ------ ---------------------------------------------------------------------- \n\n [ERROR] Found 16 errors \n\n\u001b[0;31mβ PHPStan: Errors found\u001b[0m\n\n\u001b[1;33m[2\/5] PHP-CS-Fixer - Code Style (PSR-12)\u001b[0m\nPHP CS Fixer 3.92.3 Exceptional Exception by Fabien Potencier, Dariusz Ruminski and contributors.\nPHP runtime: 8.4.16\nLoaded config default from \"\/opt\/php-tools\/.php-cs-fixer.php\".\nRunning analysis on 1 core sequentially.\nYou can enable parallel runner and speed up the analysis! Please see https:\/\/cs.symfony.com\/doc\/usage.html for more information.\nUsing cache file \"\/tmp\/.php-cs-fixer.cache\".\n 0\/323 [ββββββββββββββββββββββββββββ] 0%\n 97\/323 [ββββββββββββββββββββββββββββ] 30%\n 323\/323 [ββββββββββββββββββββββββββββ] 100%\n\n\nFound 0 of 323 files that can be fixed in 0.042 seconds, 20.00 MB memory used\n\u001b[0;32mβ PHP-CS-Fixer: OK\u001b[0m\n\n\u001b[1;33m[3\/5] Composer Audit - Dependency Vulnerabilities\u001b[0m\n\u001b[0;32mβ Composer Audit: No vulnerabilities\u001b[0m\n\n\u001b[1;33m[4\/5] Semgrep - OWASP Security Scan\u001b[0m\n\u001b[0;32mβ Semgrep: No vulnerabilities\u001b[0m\n\n\u001b[1;33m[5\/5] DI Check - UseCase Dependencies\u001b[0m\n\n\u001b[0;32mβ All UseCase dependencies are resolvable\u001b[0m\n\nRegistered services: 0\nUseCases checked: 47\n\u001b[0;32mβ DI Check: All dependencies resolvable\u001b[0m\n\n=== Summary ===\n\u001b[0;31mSome checks failed\u001b[0m",
"stderr": "",
"interrupted": false,
"isImage": false
}
}