Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
158 commits
Select commit Hold shift + click to select a range
27701fd
Security/EscapeOutput: add tests for namespaced names
rodrigoprimo Aug 21, 2025
322829b
Security/EscapeOutput: add edge case tests for basename( __FILE__ ) p…
rodrigoprimo Nov 14, 2025
7d2d6dd
Fix two typos in release checklist document
rodrigoprimo Nov 25, 2025
25151d8
Update .github/release-checklist.md
rodrigoprimo Nov 25, 2025
f51cb5d
WP/AlternativeFunctions: add tests for namespaced names
rodrigoprimo Aug 21, 2025
15c8cb7
WP/AlternativeFunctions: improve regex to distinguish global WP const…
rodrigoprimo Sep 16, 2025
e95a98f
WP/AlternativeFunctions: fix handling of FQN references to global str…
rodrigoprimo Nov 24, 2025
2cff710
Merge pull request #2659 from rodrigoprimo/patch-1
GaryJones Nov 25, 2025
bce2f34
Update `minimum_wp_version` and `testVersion` in `phpcs.xml.dist.sample`
rodrigoprimo Nov 26, 2025
e78587a
Add item about `phpcs.xml.dist.sample` to the release checklist
rodrigoprimo Nov 26, 2025
656e4ee
Merge pull request #2662 from rodrigoprimo/update-phpcs-xml-dist-sample
dingo-d Nov 27, 2025
7a6c2e5
WP/DiscouragedFunctions: rename test case file
rodrigoprimo Nov 17, 2025
214ff6f
WP/DiscouragedFunctions: move syntax error test to its own file
rodrigoprimo Nov 17, 2025
50db95d
Tests: non-standard case function call tests for sniffs extending `Ab…
rodrigoprimo Sep 9, 2025
1a4abf3
Tests: add `namespace\Sub\` tests for sniffs extending `AbstractFunct…
rodrigoprimo Nov 17, 2025
a6c0380
Tests: vary function names in namespace tests for sniffs extending `A…
rodrigoprimo Nov 17, 2025
3acb131
GH Actions: Bump the action-runners group with 2 updates
dependabot[bot] Dec 1, 2025
013dc81
Merge pull request #2664 from WordPress/dependabot/github_actions/act…
jrfnl Dec 1, 2025
513f9b3
GH Actions: Bump actions/checkout in the action-runners group
dependabot[bot] Dec 8, 2025
fd0493c
Merge pull request #2666 from WordPress/dependabot/github_actions/act…
jrfnl Dec 8, 2025
ac8c504
README: fix a few badges
jrfnl Dec 8, 2025
56ac2fc
Dependabot/gh-actions: move to bi-weekly schedule
jrfnl Dec 8, 2025
f131da8
AbstractClassRestrictionsSniff: fix inconsequential typo
jrfnl Dec 9, 2025
64d3e62
WP/DeprecatedClasses: rename test case file
rodrigoprimo Nov 6, 2025
6d2d1e4
WP/DeprecatedClasses: add tests for namespaced names
rodrigoprimo Nov 6, 2025
3ed84e2
WP/ClassNameCase: add tests for namespaced names
rodrigoprimo Nov 6, 2025
a6b8b32
DB/RestrictedClasses: add tests for namespaced names
rodrigoprimo Nov 12, 2025
1905ce0
CodeAnalysis/EscapedNotTranslated: add tests for namespaced names
rodrigoprimo Oct 16, 2025
fdf9153
DateTime/CurrentTimeTimestamp: add tests for namespaced names
rodrigoprimo Oct 16, 2025
44bd8d1
NamingConventions/ValidPostTypeSlug: add tests for namespaced names
rodrigoprimo Oct 16, 2025
16b7b2a
PHP/IniSet: add tests for namespaced names
rodrigoprimo Oct 16, 2025
93225ec
Security/PluginMenuSlug: add tests for namespaced names
rodrigoprimo Oct 16, 2025
57a83a4
PHP/PregQuoteDelimiter: add tests for namespaced names
rodrigoprimo Oct 16, 2025
5570af3
PHP/StrictInArray: add tests for namespaced names
rodrigoprimo Oct 16, 2025
b09073a
WP/Capabilities: move syntax error test to its own file
rodrigoprimo Oct 16, 2025
d1cde1a
WP/Capabilities: add tests for namespaced names
rodrigoprimo Oct 16, 2025
6b7601d
Apply changes from code review
rodrigoprimo Dec 9, 2025
0638f0b
Security/EscapeOutput: fix false positive for get_search_query() with…
rodrigoprimo Dec 10, 2025
93bf823
GH Actions: Bump codecov/codecov-action in the action-runners group
dependabot[bot] Dec 15, 2025
8b8865d
Merge pull request #2672 from WordPress/dependabot/github_actions/act…
jrfnl Dec 15, 2025
dcd2154
Merge pull request #2667 from WordPress/feature/readme-fix-badges
jrfnl Dec 15, 2025
a94350c
Merge pull request #2668 from WordPress/feature/dependabot-every-two-…
GaryJones Dec 15, 2025
4086bb0
ConstantsHelper::is_use_of_global_constant(): do not treat `use const…
rodrigoprimo Aug 15, 2025
1e33466
WP/CapitalPDangit: add tests for namespaced names
rodrigoprimo Nov 6, 2025
f0dc6ab
Merge pull request #2673 from rodrigoprimo/capital-p-dangit-namespace…
dingo-d Dec 17, 2025
f48a181
Merge pull request #2618 from rodrigoprimo/escape-output-namespaced-n…
dingo-d Dec 17, 2025
fae2dc0
PHP/PregQuoteDelimiter: add XML documentation
tikifez Sep 17, 2024
86ea20d
DB/RestrictedFunctions: add XML documentation
paulgibbs Jun 13, 2024
a7e514a
WP/DiscouragedConstants: update sniff docblock to mention constants (…
rodrigoprimo Dec 25, 2025
2f331db
Merge pull request #2677 from rodrigoprimo/docs-preg-quote-delimiter
dingo-d Dec 27, 2025
da8f3b2
Merge pull request #2676 from rodrigoprimo/docs-restricted-functions
dingo-d Dec 27, 2025
8679889
GH Actions: Bump crate-ci/typos in the action-runners group
dependabot[bot] Jan 5, 2026
7ee7992
Merge pull request #2683 from WordPress/dependabot/github_actions/act…
jrfnl Jan 6, 2026
9c8a85e
GH Actions: Bump crate-ci/typos in the action-runners group
dependabot[bot] Jan 20, 2026
8e14560
Merge pull request #2686 from WordPress/dependabot/github_actions/act…
jrfnl Jan 21, 2026
7737100
Add documentation for sniff WordPress.Security.PluginMenuSlug (#2592)
jasonkenison Jan 28, 2026
4c24f39
Merge pull request #2669 from WordPress/feature/abstractclassrestrict…
jrfnl Jan 28, 2026
f703f83
Merge pull request #2579 from rodrigoprimo/constants-helper-fix-false…
dingo-d Jan 29, 2026
9fd75c9
Merge pull request #2617 from rodrigoprimo/alternative-functions-impr…
dingo-d Jan 29, 2026
9817abb
Merge pull request #2643 from rodrigoprimo/more-namespace-tests-2
dingo-d Jan 29, 2026
55dcb16
Merge pull request #2681 from rodrigoprimo/discouraged-constants-impr…
dingo-d Jan 29, 2026
fa02bc4
WP/GlobalVariablesOverride: add XML documentation (#2679)
rodrigoprimo Jan 30, 2026
a3f1eed
WP/DiscouragedConstants: add XML documentation (#2680)
rodrigoprimo Feb 2, 2026
9508e0d
Add: documentation for AssignmentInTernaryCondition sniff
Nic-Sevic Sep 17, 2024
eefd218
Adding documentation for WordPress.Arrays.ArrayDeclarationSpacing
RafaelFunchal Sep 17, 2024
547b7ab
Add documentation for WordPress.DB.RestrictedClasses
paulgibbs Jun 13, 2024
3ee819c
PHP/DevelopmentFunctions: add XML documentation (#2690)
rodrigoprimo Feb 4, 2026
5f592d9
Merge pull request #2689 from rodrigoprimo/docs-db-restricted-classes
dingo-d Feb 4, 2026
6bfe943
Merge pull request #2682 from rodrigoprimo/docs-array-declaration-spa…
dingo-d Feb 4, 2026
c026fb2
Arrays/ArrayDeclarationSpacing: replace "associative" with "explicit …
rodrigoprimo Feb 4, 2026
e3c8568
GH Actions: Bump the action-runners group with 2 updates
dependabot[bot] Feb 5, 2026
b6584b8
Merge pull request #2695 from WordPress/dependabot/github_actions/act…
jrfnl Feb 5, 2026
03a96ee
Arrays/ArrayDeclarationSpacing: move parse error test to its own file
rodrigoprimo Feb 6, 2026
735d398
GH Actions: Bump crate-ci/typos in the action-runners group
dependabot[bot] Feb 20, 2026
3c514da
Merge pull request #2700 from WordPress/dependabot/github_actions/act…
jrfnl Feb 20, 2026
021af8d
NoSilencedErrors: remove tolerance for `parse_url()`
jrfnl Feb 23, 2026
6a2ec07
PHP/RestrictedPHPFunctions: rephrase error message
jrfnl Feb 23, 2026
2229662
Arrays/ArrayDeclarationSpacing: add new property and soft-deprecate o…
rodrigoprimo Feb 6, 2026
7b62acd
Merge pull request #2702 from WordPress/feature/restrictedphpfunction…
GaryJones Feb 24, 2026
ea73437
Merge pull request #2701 from WordPress/feature/nosilencederrors-remo…
GaryJones Feb 24, 2026
b4ca43c
WP/AlternativeFunctions: add XML documentation (#2687)
rodrigoprimo Feb 24, 2026
9126fa1
Merge pull request #2696 from rodrigoprimo/array-declaration-spacing-…
GaryJones Feb 24, 2026
1f0b1a7
ContextHelper::is_in_function_call(): add basic tests (#2626)
rodrigoprimo Feb 25, 2026
c580c6c
PHP/NoSilencedErrors: add XML documentation (#2694)
rodrigoprimo Feb 25, 2026
2de7e5d
ContextHelper::is_in_function_call(): handle $valid_functions keys ca…
rodrigoprimo Feb 25, 2026
6c040ea
PHP/RestrictedPHPFunctions: add XML documentation (#2693)
rodrigoprimo Mar 5, 2026
747be3e
DB/DirectDatabaseQuery: add XML documentation (#2697)
rodrigoprimo Mar 5, 2026
fc69a87
Merge pull request #2706 from rodrigoprimo/is-in-function-call-case-i…
dingo-d Mar 5, 2026
1dbd8ad
Merge pull request #2699 from rodrigoprimo/docs-slow-db-query
rodrigoprimo Mar 5, 2026
16c0a75
GH Actions: Bump crate-ci/typos in the action-runners group
dependabot[bot] Mar 5, 2026
b1ceece
Merge pull request #2707 from WordPress/dependabot/github_actions/act…
jrfnl Mar 6, 2026
e0ebae2
WP/EnqueuedResourceParameters: add tests for namespaced names (#2675)
rodrigoprimo Mar 19, 2026
5a9ae23
Apply suggestion from PR review
rodrigoprimo Mar 19, 2026
7022365
Security/ValidatedSanitizedInput: add tests for namespaced names
rodrigoprimo Nov 5, 2025
a36706e
GH Actions: Bump the action-runners group with 2 updates
dependabot[bot] Mar 20, 2026
4c23d00
GH Actions: Bump ramsey/composer-install from 3.1.1 to 4.0.0
dependabot[bot] Mar 20, 2026
d78a7e9
Merge pull request #2711 from WordPress/dependabot/github_actions/act…
jrfnl Mar 21, 2026
12b5637
Merge pull request #2712 from WordPress/dependabot/github_actions/ram…
jrfnl Mar 21, 2026
ea5ca81
GH Actions: Bump codecov/codecov-action from 5.5.3 to 6.0.0
dependabot[bot] Apr 5, 2026
8643436
Merge pull request #2718 from WordPress/dependabot/github_actions/cod…
jrfnl Apr 6, 2026
5196e86
GH Actions: Bump crate-ci/typos from 1.44.0 to 1.45.0 in the action-r…
dependabot[bot] Apr 21, 2026
273ae33
UnslashingFunctionsHelper::is_unslashing_function(): add tests (#2715)
rodrigoprimo Apr 23, 2026
2781d2c
Merge pull request #2709 from rodrigoprimo/validated-sanitized-input-…
GaryJones Apr 23, 2026
b050cb4
Merge pull request #2663 from rodrigoprimo/abstract-function-restrict…
GaryJones Apr 23, 2026
b40d9bd
FormattingFunctionsHelper::is_formatting_function(): add tests (#2713)
rodrigoprimo Apr 23, 2026
2f89dc3
WP/DeprecatedParameters: add tests for namespaced names
rodrigoprimo Oct 16, 2025
050c938
WP/DeprecatedParameterValues: rename test case file
rodrigoprimo Oct 16, 2025
c94a614
WP/DeprecatedParameterValues: move syntax error test to its own file
rodrigoprimo Oct 16, 2025
a87acee
WP/DeprecatedParameterValues: add tests for namespaced names
rodrigoprimo Oct 16, 2025
ad1183f
WP/GetMetaSingle: add tests for namespaced names
rodrigoprimo Oct 16, 2025
eac44b4
WP/I18n: add tests for namespaced names
rodrigoprimo Oct 16, 2025
1f6e183
Merge pull request #2633 from rodrigoprimo/abstract-function-paramete…
jrfnl Apr 23, 2026
16a785e
ContextHelper::is_in_isset_or_empty(): add basic tests (#2725)
rodrigoprimo Apr 27, 2026
22d4758
ContextHelper::is_in_array_comparison(): add basic tests (#2726)
rodrigoprimo Apr 27, 2026
6dfd8f1
WPDBTrait::is_wpdb_method_call(): improve docblock description (#2719)
rodrigoprimo Apr 27, 2026
adaf62d
ContextHelper::is_in_type_test(): add tests (#2721)
rodrigoprimo Apr 27, 2026
f812c25
Security/EscapeOutput: make basename( __FILE__ ) pattern matching cas…
rodrigoprimo Nov 14, 2025
6af12d3
GH Actions: Bump the action-runners group across 1 directory with 3 u…
dependabot[bot] May 21, 2026
3b329e8
Merge pull request #2736 from WordPress/dependabot/github_actions/act…
rodrigoprimo May 21, 2026
3ff2957
Update project Code of Conduct to match WordPress Project (#2733)
dd32 Jun 2, 2026
a4116cf
GH Actions: Bump the action-runners group with 2 updates
dependabot[bot] Jun 5, 2026
4d11dbc
Merge pull request #2739 from WordPress/dependabot/github_actions/act…
rodrigoprimo Jun 6, 2026
b8b3275
GH Actions: Bump codecov/codecov-action from 6.0.1 to 7.0.0
dependabot[bot] Jun 15, 2026
d4f1d89
Merge pull request #2742 from WordPress/dependabot/github_actions/cod…
rodrigoprimo Jun 15, 2026
a553836
GH Actions: Bump the action-runners group across 1 directory with 2 u…
dependabot[bot] Jun 15, 2026
0ba2fb9
Merge pull request #2741 from WordPress/dependabot/github_actions/act…
rodrigoprimo Jun 15, 2026
50db73c
GH Actions: Bump actions/checkout from 6.0.3 to 7.0.0
dependabot[bot] Jun 20, 2026
53b6929
Merge pull request #2744 from WordPress/dependabot/github_actions/act…
jrfnl Jun 22, 2026
36813db
WP/ClassNameCase: fix typo
rodrigoprimo Jul 2, 2026
f26200e
Merge pull request #2746 from WordPress/fix-typo
jrfnl Jul 2, 2026
fb13790
Update .gitattributes
jrfnl Jul 2, 2026
c1e23bc
Merge pull request #2748 from WordPress/feature/gitattributes-update
rodrigoprimo Jul 3, 2026
ff923bf
GH Actions: Bump crate-ci/typos in the action-runners group
dependabot[bot] Jul 5, 2026
8611846
GH Actions: Bump phpcsstandards/xmllint-validate from 1.0.1 to 2.0.0
dependabot[bot] Jul 5, 2026
80f80a5
Merge pull request #2749 from WordPress/dependabot/github_actions/act…
jrfnl Jul 6, 2026
ba6b091
Merge pull request #2750 from WordPress/dependabot/github_actions/php…
jrfnl Jul 6, 2026
322f84c
WPHookHelper::get_hook_name_param(): add basic tests (#2727)
rodrigoprimo Jul 6, 2026
2f2e672
WP/CronInterval: make callback function name lookup case-insensitive …
rodrigoprimo Jul 6, 2026
4ec02fc
DB/PreparedSQL: move intentional syntax error test to its own file
rodrigoprimo Aug 7, 2025
9874d4f
NamingConventions/PrefixAllGlobals: update the functions list based o…
rodrigoprimo Jul 1, 2026
e1911c7
WP/ClassNameCase: update the class lists based on WP 7.0.0
rodrigoprimo Jul 1, 2026
a4e1404
WP/DeprecatedFunctions: update the functions list based on WP 7.0.0
rodrigoprimo Jul 1, 2026
1c527d4
Various sniffs: update docs to document when the lists were last veri…
rodrigoprimo Jul 1, 2026
43dc9be
ArrayWalkingFunctionsHelper: add tests for is_array_walking_function(…
rodrigoprimo Dec 4, 2025
e1e2260
WPDBTrait::is_wpdb_method_call(): fix false positives for static meth…
rodrigoprimo Jul 6, 2026
81704c7
Merge pull request #2753 from WordPress/fix/2710-wpdb-static-non-global
jrfnl Jul 9, 2026
31429da
Merge pull request #2747 from WordPress/update-lists-for-wp-7.0
dingo-d Jul 10, 2026
4920864
Update the minimum_wp_version to WP 6.7
rodrigoprimo Jul 2, 2026
b62aa1b
Merge pull request #2757 from WordPress/bump-minimum-wp-version-6.7
jrfnl Jul 10, 2026
d69ed7f
Composer: raise the minimum supported PHPCS version to 3.13.5
jrfnl Jul 10, 2026
219b182
Merge pull request #2754 from WordPress/tests-array-walking-functions…
jrfnl Jul 13, 2026
c19172f
Merge pull request #2761 from WordPress/feature/composer-update-minim…
dingo-d Jul 13, 2026
6f1cb5c
Merge pull request #2729 from WordPress/fix-escape-output-basename-ca…
dingo-d Jul 13, 2026
00931f5
Update minimum_wp_version in phpcs.xml.dist.sample
rodrigoprimo Jul 13, 2026
04244a8
Merge pull request #2763 from WordPress/update-phpcs-sample-file
jrfnl Jul 13, 2026
2b16e01
Changelog for the release of WordPressCS 3.4.0
jrfnl Jan 28, 2026
598dab1
README: minor markdown fix
jrfnl Jul 10, 2026
816fc74
Merge pull request #2758 from WordPress/feature/changelog-3.4.0
rodrigoprimo Jul 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/.gitignore export-ignore
/.codecov.yml export-ignore
/.phpcs.xml.dist export-ignore
/CODE_OF_CONDUCT.md export-ignore
/_typos.toml export-ignore
/phpstan.neon.dist export-ignore
/phpunit.xml.dist export-ignore
/.github export-ignore
Expand Down
6 changes: 3 additions & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ We welcome contributions from everyone, and want your PR to have the best chance
Only submit code that you have written yourself or that comes from sources where the license clearly allows inclusion. Submitting code that infringes on copyright or licensing terms puts both you and the project at legal risk, and such contributions cannot be accepted.

* **Do not submit AI-generated code.**
Pull requests containing AI-generated code are not acceptable. Beyond copyright and licensing uncertainties, AI-generated contributions consistently require disproportionate amounts of maintainer time to review, correct, or rewrite. This wastes limited project resources and slows progress for everyone. Submitting AI-generated code may be treated as a violation of our [Code of Conduct](../CODE_OF_CONDUCT.md).
Pull requests containing AI-generated code are not acceptable. Beyond copyright and licensing uncertainties, AI-generated contributions consistently require disproportionate amounts of maintainer time to review, correct, or rewrite. This wastes limited project resources and slows progress for everyone. Submitting AI-generated code may be treated as a violation of our [Code of Conduct](https://github.com/WordPress/.github/blob/trunk/CODE_OF_CONDUCT.md).

* **Focus on quality and clarity.**
Take time to explain *why* the change is needed, and include tests or examples where appropriate. Clear, self-written explanations make it more straightforward for reviewers to understand what you are trying to achieve.
Expand Down Expand Up @@ -62,8 +62,8 @@ When you introduce new `public` sniff properties, or your sniff extends a class

### Pre-requisites
* WordPress-Coding-Standards
* PHP_CodeSniffer 3.13.4 or higher
* PHPCSUtils 1.1.0 or higher
* PHP_CodeSniffer 3.13.5 or higher
* PHPCSUtils 1.2.2 or higher
* PHPCSExtra 1.5.0 or higher
* PHPUnit 8.x - 9.x

Expand Down
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
time: "09:00"
interval: "cron"
cronjob: "10 22 5,20 * *" # At 22:10, every 5th and 20th day of the month.
open-pull-requests-limit: 5
commit-message:
prefix: "GH Actions:"
Expand Down
5 changes: 3 additions & 2 deletions .github/release-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ PR for tracking changes for the x.x.x release. Target release date: **DOW MONTH
- [ ] PHPCSUtils: check if there have been [releases][phpcsutils-releases] since the last WordPressCS release and update WordPressCS code to take advantage of any new utilities - PR #xxx
- [ ] PHPCSExtra: check if there have been [releases][phpcsextra-releases] since the last WordPressCS release and check through the changelog to see if there is anything WordPressCS could take advantage of - PR #xxx
- [ ] Check if the minimum WP version property needs updating in `MinimumWPVersionTrait::$default_minimum_wp_version` and if so, action it - PR #xxx
- [ ] Check if the `minimum_wp_version` and `testVersion` properties in `phpcs.xml.dist.sample` need updating and if so, action it - PR #xxx
- [ ] Check if any of the list based sniffs need updating and if so, action it.
:pencil2: Make sure the "last updated" annotation in the docblocks for these lists has also been updated!
List based sniffs:
Expand All @@ -32,7 +33,7 @@ PR for tracking changes for the x.x.x release. Target release date: **DOW MONTH
- [ ] `$wp_time_constants` in `WordPress.WP.CronInterval` - PR #xxx
- [ ] `$known_test_classes` in `IsUnitTestTrait` - PR #xxx
- [ ] ...etc...
- [ ] Verify there there has been no vandalism on the wiki (and if so, remove/fix it).
- [ ] Verify there has been no vandalism on the wiki (and if so, remove/fix it).

### Release prep

Expand Down Expand Up @@ -69,7 +70,7 @@ PR for tracking changes for the x.x.x release. Target release date: **DOW MONTH
- [ ] Optionally post in #plugin-review if a sniff was added in a release which was requested by the plugin review team.
- [ ] Optionally post in #core-docs if significant updates were made to the documentation ruleset.
- [ ] Create a Marketing team ["amplify request"][amplify-request].
- [ ] Submit for the ["Monthy Dev Roundup"][dev-roundup].
- [ ] Submit for the ["Monthly Dev Roundup"][dev-roundup].

[phpcs-releases]: https://github.com/PHPCSStandards/PHP_CodeSniffer/releases
[phpcsutils-releases]: https://github.com/PHPCSStandards/PHPCSUtils/releases
Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/basic-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Setup PHP
uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # 2.35.5
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
with:
php-version: 'latest'
coverage: none
Expand All @@ -50,7 +50,7 @@ jobs:
phpcsstandards/phpcsextra:"${{ env.EXTRA_DEV }}"

- name: Install Composer dependencies
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # 3.1.1
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
with:
# Bust the cache at least once a month - output format: YYYY-MM.
custom-cache-suffix: $(date -u "+%Y-%m")
Expand All @@ -66,38 +66,38 @@ jobs:
# Validate the Ruleset XML files.
# @link http://xmlsoft.org/xmllint.html
- name: Validate the WordPress rulesets
uses: phpcsstandards/xmllint-validate@0fd9c4a9046055f621fca4bbdccb8eab1fd59fdc # v1.0.1
uses: phpcsstandards/xmllint-validate@5189514594c8d5f4cf21b7e5af50f54d697973d7 # v2.0.0
with:
pattern: "./*/ruleset.xml"
xsd-file: "vendor/squizlabs/php_codesniffer/phpcs.xsd"

- name: Validate the sample ruleset
uses: phpcsstandards/xmllint-validate@0fd9c4a9046055f621fca4bbdccb8eab1fd59fdc # v1.0.1
uses: phpcsstandards/xmllint-validate@5189514594c8d5f4cf21b7e5af50f54d697973d7 # v2.0.0
with:
pattern: "phpcs.xml.dist.sample"
xsd-file: "vendor/squizlabs/php_codesniffer/phpcs.xsd"

# Validate the Documentation XML files.
- name: Validate documentation against schema
uses: phpcsstandards/xmllint-validate@0fd9c4a9046055f621fca4bbdccb8eab1fd59fdc # v1.0.1
uses: phpcsstandards/xmllint-validate@5189514594c8d5f4cf21b7e5af50f54d697973d7 # v2.0.0
with:
pattern: "./WordPress/Docs/*/*Standard.xml"
xsd-file: "vendor/phpcsstandards/phpcsdevtools/DocsXsd/phpcsdocs.xsd"

- name: Validate Project PHPCS ruleset against schema
uses: phpcsstandards/xmllint-validate@0fd9c4a9046055f621fca4bbdccb8eab1fd59fdc # v1.0.1
uses: phpcsstandards/xmllint-validate@5189514594c8d5f4cf21b7e5af50f54d697973d7 # v2.0.0
with:
pattern: ".phpcs.xml.dist"
xsd-file: "vendor/squizlabs/php_codesniffer/phpcs.xsd"

- name: "Validate PHPUnit config for use with PHPUnit 8"
uses: phpcsstandards/xmllint-validate@0fd9c4a9046055f621fca4bbdccb8eab1fd59fdc # v1.0.1
uses: phpcsstandards/xmllint-validate@5189514594c8d5f4cf21b7e5af50f54d697973d7 # v2.0.0
with:
pattern: "phpunit.xml.dist"
xsd-file: "vendor/phpunit/phpunit/schema/8.5.xsd"

- name: "Validate PHPUnit config for use with PHPUnit 9"
uses: phpcsstandards/xmllint-validate@0fd9c4a9046055f621fca4bbdccb8eab1fd59fdc # v1.0.1
uses: phpcsstandards/xmllint-validate@5189514594c8d5f4cf21b7e5af50f54d697973d7 # v2.0.0
with:
pattern: "phpunit.xml.dist"
xsd-file: "vendor/phpunit/phpunit/schema/9.2.xsd"
Expand All @@ -117,7 +117,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

Expand All @@ -133,7 +133,7 @@ jobs:

# Show XML violations inline in the file diff.
- name: Enable showing XML issues inline
uses: korelstar/xmllint-problem-matcher@1bd292d642ddf3d369d02aaa8b262834d61198c0 # v1.2.0
uses: korelstar/xmllint-problem-matcher@dd2ad21bd8a2de0187cb621419537f345e7e509c # v1.3.0

- name: Check the code-style consistency of the xml files
run: |
Expand All @@ -157,12 +157,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Set up PHP
uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # 2.35.5
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
with:
php-version: ${{ matrix.php }}
# Allow for PHP deprecation notices.
Expand All @@ -182,7 +182,7 @@ jobs:
run: composer config --unset lock

- name: Install Composer dependencies
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # 3.1.1
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
with:
composer-options: --no-dev
# Bust the cache at least once a month - output format: YYYY-MM.
Expand Down Expand Up @@ -240,12 +240,12 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Install PHP
uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # 2.35.5
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
with:
php-version: 'latest'
coverage: none
Expand All @@ -255,7 +255,7 @@ jobs:
# Dependencies need to be installed to make sure the PHPCS and PHPUnit classes are recognized.
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
- name: Install Composer dependencies
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # 3.1.1
uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # 4.0.0
with:
# Bust the cache at least once a month - output format: YYYY-MM.
custom-cache-suffix: $(date -u "+%Y-%m")
Expand All @@ -270,9 +270,9 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3" # v6.0.0
uses: "actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0" # v7.0.0
with:
persist-credentials: false

- name: "Search for misspellings"
uses: "crate-ci/typos@626c4bedb751ce0b7f03262ca97ddda9a076ae1c" # v1.39.2
uses: "crate-ci/typos@bee27e3a4fd1ea2111cf90ab89cd076c870fce14" # v1.48.0
8 changes: 4 additions & 4 deletions .github/workflows/quicktest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Set up PHP
uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # 2.35.5
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
with:
php-version: ${{ matrix.php }}
# With stable PHPCS dependencies, allow for PHP deprecation notices.
Expand All @@ -48,7 +48,7 @@ jobs:
run: composer config --unset lock

- name: Install Composer dependencies
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # 3.1.1
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
with:
# Bust the cache at least once a month - output format: YYYY-MM.
custom-cache-suffix: $(date -u "+%Y-%m")
Expand All @@ -75,7 +75,7 @@ jobs:

- name: Send coverage report to Codecov
if: ${{ success() && github.event.repository.fork == false && github.ref_name == 'develop' }}
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
files: ./build/logs/clover.xml
fail_ci_if_error: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

Expand All @@ -90,7 +90,7 @@ jobs:
fi

- name: Set up PHP
uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # 2.35.5
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
with:
php-version: ${{ matrix.php }}
ini-values: ${{ steps.set_ini.outputs.PHP_INI }}
Expand All @@ -110,7 +110,7 @@ jobs:
run: composer config --unset lock

- name: Install Composer dependencies
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # 3.1.1
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
with:
# Bust the cache at least once a month - output format: YYYY-MM.
custom-cache-suffix: $(date -u "+%Y-%m")
Expand All @@ -137,7 +137,7 @@ jobs:

- name: Send coverage report to Codecov
if: ${{ success() && matrix.coverage == true && github.event.repository.fork == false }}
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
files: ./build/logs/clover.xml
fail_ci_if_error: true
Expand Down
Loading
Loading