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
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,8 @@ Prefer adding focused tests around the exact operation being changed instead of
103
103
- a corresponding sample test under `tests/sample/`
104
104
- documentation in `doc/services/` if the feature is part of the supported public workflow
105
105
106
+
All code snippets used in the docs must live in `samples/` rather than being maintained only inline in `.rst` files, and they must be covered by the sample test suite.
107
+
106
108
Sample tests typically create a temporary PHP file from a template and `require_once` it, so keep samples self-contained and readable.
107
109
108
110
## Documentation
@@ -123,3 +125,4 @@ make -C doc html
123
125
- Keep docblocks accurate for public APIs and option arrays.
124
126
- Reuse existing fixtures, sample patterns, and helper methods before inventing new ones.
125
127
- If `composer.json` changes, run `composer normalize` because CI auto-normalizes that file.
0 commit comments