{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "\/var\/www\/scripts\/php-check.sh . 2>&1 | head -60",
"timeout": 300000,
"description": "Check PHPStan output"
}
}
{
"tool_response": {
"stdout": "=== PHP Quality & Security Check: Thu Dec 25 05:50:27 PM CET 2025 ===\nProject: .\n\n\u001b[1;33m[1\/5] PHPStan - Static Analysis + Strict Rules\u001b[0m\n ------ ----------------------------------------------------------------------- \n Line src\/Infrastructure\/Docs\/HybridSearchService.php \n ------ ----------------------------------------------------------------------- \n 59 Parameter #2 $filters (array{taxonomy_category?: string, \n taxonomy_path?: array<string>, entity_type?: string, entity_name?: st \n ring, keyword?: string, min_score?: float}) of method \n Infrastructure\\Docs\\HybridSearchService::search() should be \n contravariant with parameter $filters (array<string, mixed>) of metho \n d Domain\\Service\\SearchServiceInterface::search() \n πͺͺ method.childParameterType \n 59 Return type (array<array{chunk_id: int, doc_id: int, path: string, \n title: string, content: string, heading_path: array<string>, taxonomy \n : array<string>, entities: array<mixed>, ...}>) of method Infrastruct \n ure\\Docs\\HybridSearchService::search() should be covariant with \n return type (array<int, array<string, mixed>>) of method Domain\\Servi \n ce\\SearchServiceInterface::search() \n πͺͺ method.childReturnType \n 153 Return type (array<string>) of method Infrastructure\\Docs\\HybridSearc \n hService::suggestRelatedSearches() should be covariant with return \n type (array<int, string>) of method Domain\\Service\\SearchServiceInter \n face::suggestRelatedSearches() \n πͺͺ method.childReturnType \n ------ ----------------------------------------------------------------------- \n\n\n [ERROR] Found 3 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\/324 [ββββββββββββββββββββββββββββ] 0%\n 98\/324 [ββββββββββββββββββββββββββββ] 30%\n 324\/324 [ββββββββββββββββββββββββββββ] 100%\n\n\nFound 0 of 324 files that can be fixed in 0.083 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",
"stderr": "",
"interrupted": false,
"isImage": false
}
}