@@ -440,34 +440,45 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
440
440
- Thanks to [ Thiemo Kreuz] [ @thiemowmde ] for the patch
441
441
442
442
### Fixed
443
- - Fixed bug #3388 : phpcs does not work when run from WSL drives
443
+ - Fixed bug [ #3388 ] : phpcs does not work when run from WSL drives
444
444
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] and [ Graham Wharton] [ @gwharton ] for the patch
445
- - Fixed bug #3422 : Squiz.WhiteSpace.ScopeClosingBrace fixer removes HTML content when fixing closing brace alignment
445
+ - Fixed bug [ #3422 ] : Squiz.WhiteSpace.ScopeClosingBrace fixer removes HTML content when fixing closing brace alignment
446
446
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
447
- - Fixed bug #3437 : PSR12 does not forbid blank lines at the start of the class body
447
+ - Fixed bug [ #3437 ] : PSR12 does not forbid blank lines at the start of the class body
448
448
- Added new PSR12.Classes.OpeningBraceSpace sniff to enforce this
449
- - Fixed bug #3440 : Squiz.WhiteSpace.MemberVarSpacing false positives when attributes used without docblock
449
+ - Fixed bug [ #3440 ] : Squiz.WhiteSpace.MemberVarSpacing false positives when attributes used without docblock
450
450
- Thanks to [ Vadim Borodavko] [ @javer ] for the patch
451
- - Fixed bug #3448 : PHP 8.1 deprecation notice while generating running time value
451
+ - Fixed bug [ #3448 ] : PHP 8.1 deprecation notice while generating running time value
452
452
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] and Andy Postnikov for the patch
453
- - Fixed bug #3456 : PSR12.Classes.ClassInstantiation.MissingParentheses false positive using attributes on anonymous class
453
+ - Fixed bug [ #3456 ] : PSR12.Classes.ClassInstantiation.MissingParentheses false positive using attributes on anonymous class
454
454
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
455
- - Fixed bug #3460 : Generic.Formatting.MultipleStatementAlignment false positive on closure with parameters
455
+ - Fixed bug [ #3460 ] : Generic.Formatting.MultipleStatementAlignment false positive on closure with parameters
456
456
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
457
- - Fixed bug #3468 : do/while loops are double-counted in Generic.Metrics.CyclomaticComplexity
457
+ - Fixed bug [ #3468 ] : do/while loops are double-counted in Generic.Metrics.CyclomaticComplexity
458
458
- Thanks to [ Mark Baker] [ @MarkBaker ] for the patch
459
- - Fixed bug #3469 : Ternary Operator and Null Coalescing Operator are not counted in Generic.Metrics.CyclomaticComplexity
459
+ - Fixed bug [ #3469 ] : Ternary Operator and Null Coalescing Operator are not counted in Generic.Metrics.CyclomaticComplexity
460
460
- Thanks to [ Mark Baker] [ @MarkBaker ] for the patch
461
- - Fixed bug #3472 : PHP 8 match() expression is not counted in Generic.Metrics.CyclomaticComplexity
461
+ - Fixed bug [ #3472 ] : PHP 8 match() expression is not counted in Generic.Metrics.CyclomaticComplexity
462
462
- Thanks to [ Mark Baker] [ @MarkBaker ] for the patch
463
463
464
+ [ #3388 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3388
465
+ [ #3422 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3422
466
+ [ #3437 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3437
467
+ [ #3440 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/3440
468
+ [ #3448 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3448
469
+ [ #3456 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3456
470
+ [ #3460 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3460
471
+ [ #3468 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3468
472
+ [ #3469 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3469
473
+ [ #3472 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3472
474
+
464
475
## [ 3.6.1] - 2021-10-11
465
476
### Changed
466
477
- PHPCS annotations can now be specified using hash-style comments
467
478
- Previously, only slash-style and block-style comments could be used to do things like disable errors
468
479
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
469
- - The new PHP 8.1 tokenisation for ampersands has been reverted to use the existing PHP_CodeSniffer method
470
- - The PHP 8.1 tokens T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG and T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG are unsued
480
+ - The new PHP 8.1 tokenization for ampersands has been reverted to use the existing PHP_CodeSniffer method
481
+ - The PHP 8.1 tokens T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG and T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG are unused
471
482
- Ampersands continue to be tokenized as T_BITWISE_AND for all PHP versions
472
483
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] and [ Anna Filina] [ @afilina ] for the patch
473
484
- File::getMethodParameters() no longer incorrectly returns argument attributes in the type hint array index
@@ -499,45 +510,68 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
499
510
- Squiz.Commenting.VariableComment
500
511
- Squiz.WhiteSpace.MemberVarSpacing
501
512
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
502
- - Fixed bug #3294 : Bug in attribute tokenization when content contains PHP end token or attribute closer on new line
513
+ - Fixed bug [ #3294 ] : Bug in attribute tokenization when content contains PHP end token or attribute closer on new line
503
514
- Thanks to [ Alessandro Chitolina] [ @alekitto ] for the patch
504
515
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the tests
505
- - Fixed bug #3296 : PSR2.ControlStructures.SwitchDeclaration takes phpcs: ignore as content of case body
506
- - Fixed bug #3297 : PSR2.ControlStructures.SwitchDeclaration.TerminatingComment does not handle try/finally blocks
516
+ - Fixed bug [ #3296 ] : PSR2.ControlStructures.SwitchDeclaration takes phpcs: ignore as content of case body
517
+ - Fixed bug [ #3297 ] : PSR2.ControlStructures.SwitchDeclaration.TerminatingComment does not handle try/finally blocks
507
518
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
508
- - Fixed bug #3302 : PHP 8.0 | Tokenizer/PHP: bugfix for union types using namespace operator
519
+ - Fixed bug [ #3302 ] : PHP 8.0 | Tokenizer/PHP: bugfix for union types using namespace operator
509
520
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
510
- - Fixed bug #3303 : findStartOfStatement() doesn't work with T_OPEN_TAG_WITH_ECHO
511
- - Fixed bug #3316 : Arrow function not tokenized correctly when using null in union type
512
- - Fixed bug #3317 : Problem with how phpcs handles ignored files when running in parallel
521
+ - Fixed bug [ #3303 ] : findStartOfStatement() doesn't work with T_OPEN_TAG_WITH_ECHO
522
+ - Fixed bug [ #3316 ] : Arrow function not tokenized correctly when using null in union type
523
+ - Fixed bug [ #3317 ] : Problem with how phpcs handles ignored files when running in parallel
513
524
- Thanks to [ Emil Andersson] [ @emil-nasso ] for the patch
514
- - Fixed bug #3324 : PHPCS hangs processing some nested arrow functions inside a function call
515
- - Fixed bug #3326 : Generic.Formatting.MultipleStatementAlignment error with const DEFAULT
525
+ - Fixed bug [ #3324 ] : PHPCS hangs processing some nested arrow functions inside a function call
526
+ - Fixed bug [ #3326 ] : Generic.Formatting.MultipleStatementAlignment error with const DEFAULT
516
527
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
517
- - Fixed bug #3333 : Squiz.Objects.ObjectInstantiation: null coalesce operators are not recognized as assignment
528
+ - Fixed bug [ #3333 ] : Squiz.Objects.ObjectInstantiation: null coalesce operators are not recognized as assignment
518
529
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
519
- - Fixed bug #3340 : Ensure interface and trait names are always tokenized as T_STRING
530
+ - Fixed bug [ #3340 ] : Ensure interface and trait names are always tokenized as T_STRING
520
531
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
521
- - Fixed bug #3342 : PSR12/Squiz/PEAR standards all error on promoted properties with docblocks
532
+ - Fixed bug [ #3342 ] : PSR12/Squiz/PEAR standards all error on promoted properties with docblocks
522
533
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
523
- - Fixed bug #3345 : IF statement with no braces and double catch turned into syntax error by auto-fixer
534
+ - Fixed bug [ #3345 ] : IF statement with no braces and double catch turned into syntax error by auto-fixer
524
535
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
525
- - Fixed bug #3352 : PSR2.ControlStructures.SwitchDeclaration can remove comments on the same line as the case statement while fixing
536
+ - Fixed bug [ #3352 ] : PSR2.ControlStructures.SwitchDeclaration can remove comments on the same line as the case statement while fixing
526
537
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
527
- - Fixed bug #3357 : Generic.Functions.OpeningFunctionBraceBsdAllman removes return type when additional lines are present
538
+ - Fixed bug [ #3357 ] : Generic.Functions.OpeningFunctionBraceBsdAllman removes return type when additional lines are present
528
539
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
529
- - Fixed bug #3362 : Generic.WhiteSpace.ScopeIndent false positive for arrow functions inside arrays
530
- - Fixed bug #3384 : Squiz.Commenting.FileComment.SpacingAfterComment false positive on empty file
531
- - Fixed bug #3394 : Fix PHP 8.1 auto_detect_line_endings deprecation notice
532
- - Fixed bug #3400 : PHP 8.1: prevent deprecation notices about missing return types
540
+ - Fixed bug [ #3362 ] : Generic.WhiteSpace.ScopeIndent false positive for arrow functions inside arrays
541
+ - Fixed bug [ #3384 ] : Squiz.Commenting.FileComment.SpacingAfterComment false positive on empty file
542
+ - Fixed bug [ #3394 ] : Fix PHP 8.1 auto_detect_line_endings deprecation notice
543
+ - Fixed bug [ #3400 ] : PHP 8.1: prevent deprecation notices about missing return types
533
544
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
534
- - Fixed bug #3424 : PHPCS fails when using PHP 8 Constructor property promotion with attributes
545
+ - Fixed bug [ #3424 ] : PHPCS fails when using PHP 8 Constructor property promotion with attributes
535
546
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
536
- - Fixed bug #3425 : PHP 8.1 | Runner::processChildProcs(): fix passing null to non-nullable bug
547
+ - Fixed bug [ #3425 ] : PHP 8.1 | Runner::processChildProcs(): fix passing null to non-nullable bug
537
548
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
538
- - Fixed bug #3445 : Nullable parameter after attribute incorrectly tokenized as ternary operator
549
+ - Fixed bug [ #3445 ] : Nullable parameter after attribute incorrectly tokenized as ternary operator
539
550
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
540
551
552
+ [ #3294 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3294
553
+ [ #3296 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3296
554
+ [ #3297 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3297
555
+ [ #3302 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/3302
556
+ [ #3303 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3303
557
+ [ #3316 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3316
558
+ [ #3317 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3317
559
+ [ #3324 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3324
560
+ [ #3326 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3326
561
+ [ #3333 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3333
562
+ [ #3340 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/3340
563
+ [ #3342 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3342
564
+ [ #3345 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3345
565
+ [ #3352 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3352
566
+ [ #3357 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3357
567
+ [ #3362 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3362
568
+ [ #3384 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3384
569
+ [ #3394 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/3394
570
+ [ #3400 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/3400
571
+ [ #3424 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3424
572
+ [ #3425 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/3425
573
+ [ #3445 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/3445
574
+
541
575
## [ 3.6.0] - 2021-04-09
542
576
### Added
543
577
- Added support for PHP 8.0 union types
0 commit comments