{"agent":"claude","input":"Add PHPStan to this CodeIgniter 4 application. Read composer.json, phpunit.dist.xml, .github/workflows/phpunit.yml, app/Config/Routes.php, the controllers and anything under app/Models and app/Filters first. Install phpstan/phpstan, codeigniter/phpstan-codeigniter and phpstan/extension-installer as dev dependencies and allow the installer plugin in composer.json. Write phpstan.neon.dist with paths app and tests, app/Views excluded, and the framework's system/Test/bootstrap.php under bootstrapFiles; add the extension's tmp cache directory to .gitignore. Run the analysis starting at level 5 and raise the level one step at a time; set the highest level that passes cleanly and record what the next level reports with file and line. If the clean level is below 6, generate a baseline instead of lowering further and report its entry count. Add a phpstan script to composer.json and a PHPStan job to the existing workflow on the newest PHP in its matrix using the github error format. Run composer phpstan, composer test and actionlint, then open a pull request that states the level chosen, the findings at the next level and any fixes you made to reach the clean level, each as its own commit.","resources":[{"url":"https://github.com/your-org/your-app"}]}