You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+22-2Lines changed: 22 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,14 +49,34 @@ composer link ../../
49
49
./vendor/bin/phpunit
50
50
```
51
51
52
-
4. Coding Standards & Conventions
52
+
4. Static Analysis (PHPStan)
53
+
54
+
**Prerequisites:** You must run at least one PHPUnit test to warm up the cache before running PHPStan. PHPStan relies on the generated cache (autoload, proxies, etc.) to resolve classes correctly.
55
+
56
+
```
57
+
vendor/bin/phpstan analyse src/YourComponent
58
+
```
59
+
60
+
* MongoDB Stubs: PHPStan may fail with errors about missing MongoDB classes. Fix by installing the MongoDB ODM packages:
0 commit comments