Skip to content

Commit 6fb0aae

Browse files
committed
Document the PHPStan types fixture boundary
Clarify that phpstan.types.neon.dist owns only the committed types fixtures and must not be redirected at source or test files. This prevents targeted analysis from overriding the configuration boundary and reporting irrelevant level-max errors for code outside the type-contract suite.
1 parent 4f81fb2 commit 6fb0aae

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎AGENTS.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,8 @@ The `tests/` directory is excluded from phpstan. Do not run phpstan on tests.
700700

701701
Full PHPStan runs through `composer fix` at checkpoints. During implementation, use targeted PHPStan only when investigating or validating a specific type issue.
702702

703+
`phpstan.types.neon.dist` validates only the committed `types/` fixtures. Never pass source or test paths to it.
704+
703705
**When fixing phpstan errors:**
704706

705707
1. **Investigate before coding.** For each error: read the code, check the Laravel equivalent's types (native and docblock), trace through callers and dependents. Report findings with the single, most correct fix.

0 commit comments

Comments
 (0)