Skip to content

Commit 3b39bf9

Browse files
committed
Merge branch '3.x' into 4.x
2 parents e386fd1 + 0ca8684 commit 3b39bf9

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

CHANGELOG-3.x.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,33 @@
22

33
The file documents changes to the PHP_CodeSniffer project for the 3.x series of releases.
44

5+
## [3.13.5] - 2025-11-04
6+
7+
### Added
8+
- Runtime support for PHP 8.5. All known PHP 8.5 deprecation notices have been fixed.
9+
- Syntax support for new PHP 8.5 features will follow in a future release.
10+
- If you find any PHP 8.5 deprecation notices which were missed, please report them.
11+
12+
### Changed
13+
- Various housekeeping, including improvements to the tests and documentation.
14+
- Thanks to [Rodrigo Primo][@rodrigoprimo] and [Juliette Reinders Folmer][@jrfnl] for their contributions.
15+
16+
### Fixed
17+
- Fixed bug [#1216]: Tokenizer/PHP: added more defensive coding to prevent PHP 8.5 "Using null as an array offset" deprecation notices.
18+
- Thanks to [Andrew Lyons][@andrewnicols] for the patch.
19+
- Fixed bug [#1279]: Tokenizer/PHP: on PHP < 8.0, an unclosed attribute (parse error) could end up removing some tokens from the token stream.
20+
- This could lead to false positives and false negative from sniffs, but could also lead to incorrect fixes being made mangling the file under scan.
21+
- Thanks to [Juliette Reinders Folmer](https://github.com/jrfnl) for the patch.
22+
23+
### Other
24+
- Please be aware that the `master` branch has been renamed to `3.x` and the default branch has changed to the `4.x` branch.
25+
- If you contribute to PHP_CodeSniffer, you will need to update your local git clone.
26+
- If you develop against PHP_CodeSniffer and run your tests against dev branches of PHPCS, you will need to update your workflows.
27+
28+
[#1216]: https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/1216
29+
[#1279]: https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/1279
30+
31+
532
## [3.13.4] - 2025-09-05
633

734
### Fixed
@@ -3777,6 +3804,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
37773804
=== Link list for release links ====
37783805
-->
37793806

3807+
[3.13.5]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.13.4...3.13.5
37803808
[3.13.4]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.13.3...3.13.4
37813809
[3.13.3]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.13.2...3.13.3
37823810
[3.13.2]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.13.1...3.13.2
@@ -3843,6 +3871,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
38433871
[@alekitto]: https://github.com/alekitto
38443872
[@anbuc]: https://github.com/anbuc
38453873
[@AndrewDawes]: https://github.com/AndrewDawes
3874+
[@andrewnicols]: https://github.com/andrewnicols
38463875
[@andypost]: https://github.com/andypost
38473876
[@annechko]: https://github.com/annechko
38483877
[@anomiex]: https://github.com/anomiex

tests/Core/Tokenizers/PHP/NullableVsInlineThenParseErrorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Tests the retokenization of ? to T_NULLABLE or T_INLINE_THEN.
44
*
55
* @copyright 2025 PHPCSStandards and contributors
6-
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
6+
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/HEAD/licence.txt BSD Licence
77
*/
88

99
namespace PHP_CodeSniffer\Tests\Core\Tokenizers\PHP;

0 commit comments

Comments
 (0)