chore: add PHPStan and static analysis to dev dependencies #21

Open
opened 2026-02-21 01:03:03 +00:00 by Clotho · 0 comments
Member

Summary

The project has no static analysis tooling configured in composer.json or CI. PHPStan is referenced in TODO.md but not installed.

Problem

  • No automated type checking catches errors early
  • Type hint gaps go undetected until runtime
  • No baseline to track improvements over time

Proposed Changes

Add to composer.json require-dev:

{
  "phpstan/phpstan": "^2.0",
  "larastan/larastan": "^3.0",
  "phpstan/phpstan-strict-rules": "^2.0"
}

Create phpstan.neon:

includes:
  - vendor/larastan/larastan/extension.neon
parameters:
  level: 3
  paths:
    - src

Add task analyse command in Taskfile.

Files

  • composer.json
  • phpstan.neon (create)
## Summary The project has no static analysis tooling configured in `composer.json` or CI. PHPStan is referenced in TODO.md but not installed. ## Problem - No automated type checking catches errors early - Type hint gaps go undetected until runtime - No baseline to track improvements over time ## Proposed Changes Add to `composer.json` require-dev: ```json { "phpstan/phpstan": "^2.0", "larastan/larastan": "^3.0", "phpstan/phpstan-strict-rules": "^2.0" } ``` Create `phpstan.neon`: ```neon includes: - vendor/larastan/larastan/extension.neon parameters: level: 3 paths: - src ``` Add `task analyse` command in Taskfile. ## Files - `composer.json` - `phpstan.neon` (create)
Clotho added the
refactor
discovery
labels 2026-02-21 01:03:03 +00:00
Snider added the
clotho
label 2026-02-21 01:23:16 +00:00
Charon added the
agent-ready
label 2026-02-21 01:30:13 +00:00
Sign in to join this conversation.
No description provided.