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
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,13 @@ This project is a WordPress plugin designed to enhance website performance throu
6
6
## Coding Standards
7
7
- Follow the coding standards defined in the ./phpcs.xml file.
8
8
- This is a WordPress plugin, so the coding standards must adhere to the WordPress coding standards.
9
+
- This plugin must be compatible with PHP 7.2.5 through 8.3, as defined in the main plugin file "w3-total-cache.php" and "readme.txt".
10
+
- This plugin must be compatible with WordPress 5.3 and up, as defined in the main plugin file "w3-total-cache.php" and "readme.txt".
9
11
- Do not use spaces for indentation; use 4-space tabs instead.
10
12
- Use single quotes for strings unless double quotes are necessary (e.g., when using variables inside the string).
11
13
- Do not make coding standards changes in changed files unless it is directly related to the functionality being modified.
12
14
- Opening parenthesis of a multi-line function call must be the last content on the line (PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket).
15
+
- Prefix all global namespace functions with a backslash.
@@ -32,3 +35,7 @@ This project is a WordPress plugin designed to enhance website performance throu
32
35
- Internal work may originate from JIRA issues for internal tracking.
33
36
- Create a JIRA issue, implement the change in a branch, and open a pull request that references the JIRA issue.
34
37
- Ensure each pull request references its originating issue (GitHub or JIRA) and includes a clear description of the change.
38
+
39
+
## Dependency Management
40
+
- Use `yarn run upgrade:deps` to refresh JS packages and Composer libraries in one step; this enforces the PHP 7.2.5–8.3 constraint declared in `composer.json`.
41
+
- When running Composer directly, keep `composer update --with-all-dependencies` targeted at the repo root so the generated lock file honors the configured PHP platform (7.2.5).
0 commit comments