@@ -2578,7 +2578,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2578
2578
## [3.0.2] - 2017-07-18
2579
2579
### Changed
2580
2580
- The code report now gracefully handles tokenizer exceptions
2581
- - The phpcs and phpcbf scripts and now the only places that exit() in the code
2581
+ - The phpcs and phpcbf scripts are now the only places that exit() in the code
2582
2582
- This allows for easier usage of core PHPCS functions from external scripts
2583
2583
- If you are calling Runner::runPHPCS() or Runner::runPHPCBF() directly, you will get back the full range of exit codes
2584
2584
- If not, catch the new DeepExitException to get the error message ($e->getMessage()) and exit code ($e->getCode());
@@ -2593,20 +2593,31 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2593
2593
### Fixed
2594
2594
- Fixed a problem where the source report was not printing the correct number of errors found
2595
2595
- Fixed a problem where the --cache=/path/to/cachefile CLI argument was not working
2596
- - Fixed bug #1465 : Generic.WhiteSpace.ScopeIndent reports incorrect errors when indenting double arrows in short arrays
2597
- - Fixed bug #1478 : Indentation in fallthrough CASE that contains a closure
2598
- - Fixed bug #1497 : Fatal error if composer prepend-autoloader is set to false
2596
+ - Fixed bug [ #1465] : Generic.WhiteSpace.ScopeIndent reports incorrect errors when indenting double arrows in short arrays
2597
+ - Fixed bug [ #1478] : Indentation in fallthrough CASE that contains a closure
2598
+ - Fixed bug [ #1497] : Fatal error if composer prepend-autoloader is set to false
2599
2599
- Thanks to [Kunal Mehta][@legoktm] for the patch
2600
- - Fixed bug #1503 : Alternative control structure syntax not always recognized as scoped
2601
- - Fixed bug #1523 : Fatal error when using the --suffix argument
2600
+ - Fixed bug [ #1503] : Alternative control structure syntax not always recognized as scoped
2601
+ - Fixed bug [ #1523] : Fatal error when using the --suffix argument
2602
2602
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2603
- - Fixed bug #1526 : Use of basepath setting can stop PHPCBF being able to write fixed files
2604
- - Fixed bug #1530 : Generic.WhiteSpace.ScopeIndent can increase indent too much for lines within code blocks
2605
- - Fixed bug #1547 : Wrong token type for backslash in use function
2603
+ - Fixed bug [ #1526] : Use of basepath setting can stop PHPCBF being able to write fixed files
2604
+ - Fixed bug [ #1530] : Generic.WhiteSpace.ScopeIndent can increase indent too much for lines within code blocks
2605
+ - Fixed bug [ #1547] : Wrong token type for backslash in use function
2606
2606
- Thanks to [Michał Bundyra][@michalbundyra] for the patch
2607
- - Fixed bug #1549 : Squiz.PHP.EmbeddedPhp fixer conflict with // comment before PHP close tag
2607
+ - Fixed bug [ #1549] : Squiz.PHP.EmbeddedPhp fixer conflict with // comment before PHP close tag
2608
2608
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2609
- - Fixed bug #1560 : Squiz.Commenting.FunctionComment fatal error when fixing additional param comment lines that have no indent
2609
+ - Fixed bug [#1560] : Squiz.Commenting.FunctionComment fatal error when fixing additional param comment lines that have no indent
2610
+
2611
+ [#1465]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1465
2612
+ [#1478]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1478
2613
+ [#1497]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1497
2614
+ [#1503]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1503
2615
+ [#1523]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1523
2616
+ [#1526]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1526
2617
+ [#1530]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1530
2618
+ [#1547]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1547
2619
+ [#1549]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1549
2620
+ [#1560]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1560
2610
2621
2611
2622
## [3.0.1] - 2017-06-14
2612
2623
### Security
@@ -2625,7 +2636,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2625
2636
- PHPCS now stops looking for a phpcs.xml file as soon as one is found, favoring the closest one to the current dir
2626
2637
- Added missing help text for the --stdin-path CLI option to --help
2627
2638
- Re-added missing help text for the --file-list and --bootstrap CLI options to --help
2628
- - Runner::runPHPCS() and Runner::runPHPCBF() now return an exit code instead of exiting directly (request #1484)
2639
+ - Runner::runPHPCS() and Runner::runPHPCBF() now return an exit code instead of exiting directly (request [ #1484] )
2629
2640
- The Squiz standard now enforces short array syntax by default
2630
2641
- The autoloader is now working correctly with classes created with class_alias()
2631
2642
- The autoloader will now search for files inside all directories in the installed_paths config var
@@ -2646,34 +2657,49 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2646
2657
### Fixed
2647
2658
- Fixed a problem where excluding a message from a custom standard's own sniff would exclude the whole sniff
2648
2659
- This caused some PSR2 errors to be under-reported
2649
- - Fixed bug #1442 : T_NULLABLE detection not working for nullable parameters and return type hints in some cases
2650
- - Fixed bug #1447 : Running the unit tests with a phpunit config file breaks the test suite
2660
+ - Fixed bug [ #1442] : T_NULLABLE detection not working for nullable parameters and return type hints in some cases
2661
+ - Fixed bug [ #1447] : Running the unit tests with a phpunit config file breaks the test suite
2651
2662
- Unknown arguments were not being handled correctly, but are now stored in $config->unknown
2652
- - Fixed bug #1449 : Generic.Classes.OpeningBraceSameLine doesn't detect comment before opening brace
2663
+ - Fixed bug [ #1449] : Generic.Classes.OpeningBraceSameLine doesn't detect comment before opening brace
2653
2664
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2654
- - Fixed bug #1450 : Coding standard located under an installed_path with the same directory name throws an error
2665
+ - Fixed bug [ #1450] : Coding standard located under an installed_path with the same directory name throws an error
2655
2666
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2656
- - Fixed bug #1451 : Sniff exclusions/restrictions dont work with custom sniffs unless they use the PHP_CodeSniffer NS
2657
- - Fixed bug #1454 : Squiz.WhiteSpace.OperatorSpacing is not checking spacing on either side of a short ternary operator
2667
+ - Fixed bug [ #1451] : Sniff exclusions/restrictions don't work with custom sniffs unless they use the PHP_CodeSniffer NS
2668
+ - Fixed bug [ #1454] : Squiz.WhiteSpace.OperatorSpacing is not checking spacing on either side of a short ternary operator
2658
2669
- Thanks to [Mponos George][@gmponos] for the patch
2659
- - Fixed bug #1495 : Setting an invalid installed path breaks all commands
2660
- - Fixed bug #1496 : Squiz.Strings.DoubleQuoteUsage not unescaping dollar sign when fixing
2670
+ - Fixed bug [ #1495] : Setting an invalid installed path breaks all commands
2671
+ - Fixed bug [ #1496] : Squiz.Strings.DoubleQuoteUsage not unescaping dollar sign when fixing
2661
2672
- Thanks to [Michał Bundyra][@michalbundyra] for the patch
2662
- - Fixed bug #1501 : Interactive mode is broken
2663
- - Fixed bug #1504 : PSR2.Namespaces.UseDeclaration hangs fixing use statement with no trailing code
2673
+ - Fixed bug [#1501] : Interactive mode is broken
2674
+ - Fixed bug [#1504] : PSR2.Namespaces.UseDeclaration hangs fixing use statement with no trailing code
2675
+
2676
+ [#1484]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1484
2677
+ [#1442]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1442
2678
+ [#1447]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1447
2679
+ [#1449]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1449
2680
+ [#1450]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1450
2681
+ [#1451]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1451
2682
+ [#1454]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1454
2683
+ [#1495]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1495
2684
+ [#1496]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1496
2685
+ [#1501]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1501
2686
+ [#1504]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1504
2664
2687
2665
2688
## [2.9.1] - 2017-05-22
2666
2689
### Fixed
2667
- - Fixed bug #1442 : T_NULLABLE detection not working for nullable parameters and return type hints in some cases
2668
- - Fixed bug #1448 : Generic.Classes.OpeningBraceSameLine doesn't detect comment before opening brace
2690
+ - Fixed bug [ #1442] : T_NULLABLE detection not working for nullable parameters and return type hints in some cases
2691
+ - Fixed bug [ #1448] : Generic.Classes.OpeningBraceSameLine doesn't detect comment before opening brace
2669
2692
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2670
2693
2694
+ [#1442]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1442
2695
+ [#1448]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1448
2696
+
2671
2697
## [3.0.0] - 2017-05-04
2672
2698
### Changed
2673
- - Added an --ignore-annotations command line argument to ignore all @codingStandards annotations in code comments (request #811)
2699
+ - Added an --ignore-annotations command line argument to ignore all @codingStandards annotations in code comments (request [ #811] )
2674
2700
- This allows you to force errors to be shown that would otherwise be ignored by code comments
2675
- - Also stop files being able to change sniff properties mid way through processing
2676
- - An error is now reported if no sniffs were registered to be run (request #1129)
2701
+ - Also stop files being able to change sniff properties midway through processing
2702
+ - An error is now reported if no sniffs were registered to be run (request [ #1129] )
2677
2703
- The autoloader will now search for files inside the directory of any loaded coding standard
2678
2704
- This allows autoloading of any file inside a custom coding standard without manually requiring them
2679
2705
- Ensure your namespace begins with your coding standard's directory name and follows PSR-4
@@ -2688,9 +2714,13 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2688
2714
- Includes all changes from the 2.9.0 release
2689
2715
2690
2716
### Fixed
2691
- - Fixed bug #834 : PSR2.ControlStructures.SwitchDeclaration does not handle if branches with returns
2717
+ - Fixed bug [ #834] : PSR2.ControlStructures.SwitchDeclaration does not handle if branches with returns
2692
2718
- Thanks to [Fabian Wiget][@fabacino] for the patch
2693
2719
2720
+ [#811]: https://github.com/squizlabs/PHP_CodeSniffer/issues/811
2721
+ [#1129]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1129
2722
+ [#834]: https://github.com/squizlabs/PHP_CodeSniffer/issues/834
2723
+
2694
2724
## [3.0.0RC4] - 2017-03-02
2695
2725
### Security
2696
2726
- This release contains a fix for a security advisory related to the improper handling of shell commands
0 commit comments