{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "\/var\/www\/scripts\/php-check.sh 2>&1 | head -100",
"timeout": 300000,
"description": "Run full PHP quality check"
}
}
{
"tool_response": {
"stdout": "=== PHP Quality & Security Check: Thu Dec 25 08:19:08 PM CET 2025 ===\nProject: \/var\/www\/dev.campus.systemische-tools.de\n\n\u001b[1;33m[1\/6] PHPStan - Static Analysis + Strict Rules\u001b[0m\n ------ ---------------------------------------------------------------- \n Line src\/Domain\/Entity\/EntityTaxonomyMapping.php \n ------ ---------------------------------------------------------------- \n 180 Strict comparison using !== between mixed and null will always \n evaluate to true. \n πͺͺ notIdentical.alwaysTrue \n π‘ Type null has already been eliminated from mixed. \n ------ ---------------------------------------------------------------- \n\n ------ ----------------------------------------------------------------------- \n Line src\/UseCases\/Search\/EnhancedSearchUseCase.php \n ------ ----------------------------------------------------------------------- \n 187 Casting to int something that's already int. \n πͺͺ cast.useless \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 221 Casting to int something that's already int. \n πͺͺ cast.useless \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\/UseCases\/Taxonomy\/GetTaxonomyOverviewUseCase.php \n ------ ----------------------------------------------------------------------- \n 105 Casting to int something that's already int. \n πͺͺ cast.useless \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 [ERROR] Found 4 errors \n\n\u001b[0;31mβ PHPStan: Errors found\u001b[0m\n\n\u001b[1;33m[2\/6] 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\/336 [ββββββββββββββββββββββββββββ] 0%\n 68\/336 [ββββββββββββββββββββββββββββ] 20%\n 202\/336 [ββββββββββββββββββββββββββββ] 60%\n 269\/336 [ββββββββββββββββββββββββββββ] 80%\n 336\/336 [ββββββββββββββββββββββββββββ] 100%\n\n 1) src\/ServiceProvider\/InfrastructureServiceProvider.php\n ---------- begin diff ----------\n--- \/var\/www\/dev.campus.systemische-tools.de\/src\/ServiceProvider\/InfrastructureServiceProvider.php\n+++ \/var\/www\/dev.campus.systemische-tools.de\/src\/ServiceProvider\/InfrastructureServiceProvider.php\n@@ -10,10 +10,10 @@\n use Domain\\Repository\\ChunkTaxonomyRepositoryInterface;\n use Domain\\Repository\\CodeQualityRepositoryInterface;\n use Domain\\Repository\\ContractRepositoryInterface;\n-use Domain\\Repository\\EntityTaxonomyRepositoryInterface;\n use Domain\\Repository\\DependencyGraphRepositoryInterface;\n use Domain\\Repository\\DokumentationRepositoryInterface;\n use Domain\\Repository\\DokumentExplorerRepositoryInterface;\n+use Domain\\Repository\\EntityTaxonomyRepositoryInterface;\n use Domain\\Repository\\FileAnalysisRepositoryInterface;\n use Domain\\Repository\\FileBackupRepositoryInterface;\n use Domain\\Repository\\KiProtokollRepositoryInterface;\n@@ -40,10 +40,10 @@\n use Infrastructure\\Persistence\\ChunkTaxonomyRepository;\n use Infrastructure\\Persistence\\CodeQualityRepository;\n use Infrastructure\\Persistence\\ContractRepository;\n-use Infrastructure\\Persistence\\EntityTaxonomyRepository;\n use Infrastructure\\Persistence\\DependencyGraphRepository;\n use Infrastructure\\Persistence\\DokumentationRepository;\n use Infrastructure\\Persistence\\DokumentExplorerRepository;\n+use Infrastructure\\Persistence\\EntityTaxonomyRepository;\n use Infrastructure\\Persistence\\FileAnalysisRepository;\n use Infrastructure\\Persistence\\FileBackupRepository;\n use Infrastructure\\Persistence\\KiProtokollRepository;\n\n ----------- end diff -----------\n\n\nFound 1 of 336 files that can be fixed in 0.142 seconds, 20.00 MB memory used\n\u001b[0;31mβ PHP-CS-Fixer: Style issues found (run with --fix)\u001b[0m\n\n\u001b[1;33m[3\/6] Composer Audit - Dependency Vulnerabilities\u001b[0m\n\u001b[0;32mβ Composer Audit: No vulnerabilities\u001b[0m\n\n\u001b[1;33m[4\/6] Semgrep - OWASP Security Scan\u001b[0m\n\u001b[0;32mβ Semgrep: No vulnerabilities\u001b[0m\n\n\u001b[1;33m[5\/6] DI Check - UseCase Dependencies\u001b[0m\n\n\u001b[0;32mβ All UseCase dependencies are resolvable\u001b[0m",
"stderr": "",
"interrupted": false,
"isImage": false
}
}