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
*[Branch rename in the PHP_CodeSniffer repo](#upcoming-branch-rename-in-the-php_codesniffer-repo)
28
29
*[Notable other changes and new features](#notable-other-changes-and-new-features)
29
30
*[Progress, error and debug output is now send to STDERR](#progress-error-and-debug-output-is-now-send-to-stderr)
30
31
*[Files without extension can now be scanned](#files-without-extension-can-now-be-scanned)
@@ -299,6 +300,39 @@ CI scripts or git pre-commit hooks may be checking explicitly for specific exit
299
300
<palign="right"><ahref="#table-of-contents">back to top</a></p>
300
301
301
302
303
+
### [Upcoming] Branch rename in the PHP_CodeSniffer repo
304
+
305
+
Just before the final 4.0.0 release, the PHP_CodeSniffer `master` branch will be renamed to `3.x` and the default branch will change to `4.x`.
306
+
307
+
#### Upgrading
308
+
309
+
##### Referencing the PHP_CodeSniffer XSD file for rulesets
310
+
311
+
If your ruleset includes a reference to the PHP_CodeSniffer XSD file via a URL, that URL will become invalid.
312
+
As of mid May 2025, the current PHP_CodeSniffer ruleset XSD file can be referenced via the following permalink: `https://schema.phpcodesniffer.com/phpcs.xsd`.
313
+
Permalinks to the XSD file for specific minors are also available in the following format: `https://schema.phpcodesniffer.com/#.#/phpcs.xsd`.
Relative file references like `xsi:noNamespaceSchemaLocation="./vendor/squizlabs/php_codesniffer/phpcs.xsd"` will continue to be valid.
324
+
325
+
##### Referencing the main branches in the repo
326
+
327
+
If you reference a development version of PHP_CodeSniffer in your `composer.json` file or in CI scripts, those references will need to be updated.
328
+
What to update these to, depends on your use-case.
329
+
330
+
* If you want to use the latest development version of PHP_CodeSniffer, use the `4.x` branch. For Composer, references to the branch will need to look like this: `4.x-dev`.
331
+
* If you want the last development version of the `3.x` branch - previously `master`, use `3.x`. For Composer, references to the branch will need to look like this: `3.x-dev`.
332
+
333
+
<palign="right"><ahref="#table-of-contents">back to top</a></p>
334
+
335
+
302
336
## Notable other changes and new features
303
337
304
338
### Progress, error and debug output is now send to STDERR
0 commit comments