Skip to content

Commit d90bdad

Browse files
committed
Changelog for #2680 (ref #2620)
1 parent 37b0cb1 commit d90bdad

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

package.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ http://pear.php.net/dtd/package-2.0.xsd">
3232
-- By default, it continues to return the first matched token found from the top of the file
3333
- Added Generic.PHP.DisallowRequestSuperglobal to ban the use of the $_REQUEST superglobal
3434
-- Thanks to Morerice for the contribution
35+
- PSR12.ControlStructures.BooleanOperatorPlacement can now be configured to enforce a specific operator position
36+
-- By default, the sniff ensures that operators are all at the begining or end of lines, but not a mix of both
37+
-- Set the allowOnly property to "first" to enforce all boolean operators to be at the start of a line
38+
-- Set the allowOnly property to "last" to enforce all boolean operators to be at the end of a line
39+
-- Thanks to Vincent Langlet for the patch
3540
- Squiz.PHP.InnerFunctions now handles multiple nested anon classes correctly
3641
- Fixed bug #2688 : Case statements not tokenized correctly when switch is contained within ternary
3742
- Fixed bug #2698 : PHPCS throws errors determining auto report width when shell_exec is disabled

src/Standards/PSR12/Sniffs/ControlStructures/BooleanOperatorPlacementSniff.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ class BooleanOperatorPlacementSniff implements Sniff
1616
{
1717

1818
/**
19-
* Used to restrict the placement of the boolean operator
20-
* Allowed value are 'first' or 'last'
19+
* Used to restrict the placement of the boolean operator.
20+
*
21+
* Allowed value are "first" or "last".
2122
*
2223
* @var string|null
2324
*/

0 commit comments

Comments
 (0)