Skip to content

Commit 721cd89

Browse files
committed
Changelog and readme updates for PHPCSExtra 1.3.0
1 parent 359ed4d commit 721cd89

File tree

2 files changed

+48
-9
lines changed

2 files changed

+48
-9
lines changed

CHANGELOG.md

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,35 @@ This projects adheres to [Keep a CHANGELOG](https://keepachangelog.com/) and use
1414

1515
_Nothing yet._
1616

17+
18+
## [1.3.0] - 2025-04-21
19+
20+
### Added
21+
22+
#### Universal
23+
24+
* :wrench: :books: New `Universal.PHP.NoFQNTrueFalseNull` sniff to forbid using `true`, `false` and `null` as fully qualified constants. Thanks [@rodrigoprimo] for reviewing. [#327]
25+
* `Universal.Operators.TypeSeparatorSpacing`: support for checking the spacing around the parenetheses used in PHP 8.2+ DNF types. [#329]
26+
27+
### Changed
28+
29+
#### Universal
30+
31+
* The `Universal.WhiteSpace.DisallowInlineTabs` sniff will now also check for inline tabs in heredoc/nowdoc openers and between the `yield` and `from` keywords. [#320]
32+
33+
#### Other
34+
35+
* Composer: The minimum `PHP_CodeSniffer` requirement has been updated to `^3.12.1` (was `^3.8.0`). [#330]
36+
* Developer happiness: prevent creating a `composer.lock` file. Thanks [@fredden]! [#307]
37+
* Various housekeeping, including improvements to the documentation and tests.
38+
39+
[#307]: https://github.com/PHPCSStandards/PHPCSExtra/pull/307
40+
[#320]: https://github.com/PHPCSStandards/PHPCSExtra/pull/320
41+
[#327]: https://github.com/PHPCSStandards/PHPCSExtra/pull/327
42+
[#329]: https://github.com/PHPCSStandards/PHPCSExtra/pull/329
43+
[#330]: https://github.com/PHPCSStandards/PHPCSExtra/pull/330
44+
45+
1746
## [1.2.1] - 2023-12-08
1847

1948
### Changed
@@ -567,6 +596,7 @@ This initial alpha release contains the following sniffs:
567596
[php_version-config]: https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Configuration-Options#setting-the-php-version
568597

569598
[Unreleased]: https://github.com/PHPCSStandards/PHPCSExtra/compare/stable...HEAD
599+
[1.3.0]: https://github.com/PHPCSStandards/PHPCSExtra/compare/1.2.1...1.3.0
570600
[1.2.1]: https://github.com/PHPCSStandards/PHPCSExtra/compare/1.2.0...1.2.1
571601
[1.2.0]: https://github.com/PHPCSStandards/PHPCSExtra/compare/1.1.2...1.2.0
572602
[1.1.2]: https://github.com/PHPCSStandards/PHPCSExtra/compare/1.1.1...1.1.2
@@ -581,10 +611,11 @@ This initial alpha release contains the following sniffs:
581611
[1.0.0-alpha3]: https://github.com/PHPCSStandards/PHPCSExtra/compare/1.0.0-alpha2...1.0.0-alpha3
582612
[1.0.0-alpha2]: https://github.com/PHPCSStandards/PHPCSExtra/compare/1.0.0-alpha1...1.0.0-alpha2
583613

584-
[@anomiex]: https://github.com/anomiex
585-
[@derickr]: https://github.com/derickr
586-
[@diedexx]: https://github.com/diedexx
587-
[@fredden]: https://github.com/fredden
588-
[@GaryJones]: https://github.com/GaryJones
589-
[@stronk7]: https://github.com/stronk7
590-
[@szepeviktor]: https://github.com/szepeviktor
614+
[@anomiex]: https://github.com/anomiex
615+
[@derickr]: https://github.com/derickr
616+
[@diedexx]: https://github.com/diedexx
617+
[@fredden]: https://github.com/fredden
618+
[@GaryJones]: https://github.com/GaryJones
619+
[@rodrigoprimo]: https://github.com/rodrigoprimo
620+
[@stronk7]: https://github.com/stronk7
621+
[@szepeviktor]: https://github.com/szepeviktor

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,14 +403,22 @@ This is considered a **_risky_ fixer**.
403403

404404
#### `Universal.Operators.TypeSeparatorSpacing` :wrench: :bar_chart: :books:
405405

406-
Enforce no spaces around the union type and intersection type operators.
406+
Enforce spacing rules around the union, intersection and DNF type operators.
407+
* No space on either side of a union or intersection type operator.
408+
* No space on the inside of DNF type parenthesis or before/after if the previous/next "thing" is part of the type.
409+
* One space before a DNF open parenthesis when it is at the start of a type.
410+
* One space after a DNF close parenthesis when it is at the end of a type.
407411

408-
The available error codes are: `UnionTypeSpacesBefore`, `UnionTypeSpacesAfter`, `IntersectionTypeSpacesBefore`, `IntersectionTypeSpacesAfter`.
412+
The available error codes are: `UnionTypeSpacesBefore`, `UnionTypeSpacesAfter`, `IntersectionTypeSpacesBefore`, `IntersectionTypeSpacesAfter`, `DNFOpenSpacesBefore`, `DNFOpenSpacesAfter`, `DNFCloseTypeSpacesBefore`, `DNFCloseTypeSpacesAfter`.
409413

410414
#### `Universal.PHP.LowercasePHPTag` :wrench: :bar_chart: :books:
411415

412416
Enforces that the "PHP" in a PHP open tag is lowercase.
413417

418+
#### `Universal.PHP.NoFQNTrueFalseNull` :wrench: :books:
419+
420+
Forbids using `true`, `false` and `null` as fully qualified constants.
421+
414422
#### `Universal.PHP.OneStatementInShortEchoTag` :wrench: :books:
415423

416424
Disallow short open echo tags `<?=` containing more than one PHP statement.

0 commit comments

Comments
 (0)