@@ -106,7 +106,7 @@ _Nothing yet._
106
106
[ #198 ] : https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/198
107
107
[ #227 ] : https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/227
108
108
[ #235 ] : https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/235
109
- [ #277 ] : https://github.com/PHPCSStandards/PHP_CodeSniffer/issues /277
109
+ [ #277 ] : https://github.com/PHPCSStandards/PHP_CodeSniffer/pull /277
110
110
[ #281 ] : https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/281
111
111
[ #288 ] : https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/288
112
112
[ #296 ] : https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/296
@@ -162,8 +162,8 @@ _Nothing yet._
162
162
- Thanks to [ Rodrigo Primo] [ @rodrigoprimo ] for the patch
163
163
164
164
[ #124 ] : https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/124
165
- [ #150 ] : https://github.com/PHPCSStandards/PHP_CodeSniffer/issues /150
166
- [ #154 ] : https://github.com/PHPCSStandards/PHP_CodeSniffer/issues /154
165
+ [ #150 ] : https://github.com/PHPCSStandards/PHP_CodeSniffer/pull /150
166
+ [ #154 ] : https://github.com/PHPCSStandards/PHP_CodeSniffer/pull /154
167
167
[ #178 ] : https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/178
168
168
[ #205 ] : https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/205
169
169
[ #211 ] : https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/211
@@ -2476,7 +2476,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2476
2476
## [ 3.0.2] - 2017-07-18
2477
2477
### Changed
2478
2478
- The code report now gracefully handles tokenizer exceptions
2479
- - The phpcs and phpcbf scripts and now the only places that exit() in the code
2479
+ - The phpcs and phpcbf scripts are now the only places that exit() in the code
2480
2480
- This allows for easier usage of core PHPCS functions from external scripts
2481
2481
- If you are calling Runner::runPHPCS() or Runner::runPHPCBF() directly, you will get back the full range of exit codes
2482
2482
- If not, catch the new DeepExitException to get the error message ($e->getMessage()) and exit code ($e->getCode());
@@ -2491,20 +2491,31 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2491
2491
### Fixed
2492
2492
- Fixed a problem where the source report was not printing the correct number of errors found
2493
2493
- Fixed a problem where the --cache=/path/to/cachefile CLI argument was not working
2494
- - Fixed bug #1465 : Generic.WhiteSpace.ScopeIndent reports incorrect errors when indenting double arrows in short arrays
2495
- - Fixed bug #1478 : Indentation in fallthrough CASE that contains a closure
2496
- - Fixed bug #1497 : Fatal error if composer prepend-autoloader is set to false
2494
+ - Fixed bug [ #1465 ] : Generic.WhiteSpace.ScopeIndent reports incorrect errors when indenting double arrows in short arrays
2495
+ - Fixed bug [ #1478 ] : Indentation in fallthrough CASE that contains a closure
2496
+ - Fixed bug [ #1497 ] : Fatal error if composer prepend-autoloader is set to false
2497
2497
- Thanks to [ Kunal Mehta] [ @legoktm ] for the patch
2498
- - Fixed bug #1503 : Alternative control structure syntax not always recognized as scoped
2499
- - Fixed bug #1523 : Fatal error when using the --suffix argument
2498
+ - Fixed bug [ #1503 ] : Alternative control structure syntax not always recognized as scoped
2499
+ - Fixed bug [ #1523 ] : Fatal error when using the --suffix argument
2500
2500
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2501
- - Fixed bug #1526 : Use of basepath setting can stop PHPCBF being able to write fixed files
2502
- - Fixed bug #1530 : Generic.WhiteSpace.ScopeIndent can increase indent too much for lines within code blocks
2503
- - Fixed bug #1547 : Wrong token type for backslash in use function
2501
+ - Fixed bug [ #1526 ] : Use of basepath setting can stop PHPCBF being able to write fixed files
2502
+ - Fixed bug [ #1530 ] : Generic.WhiteSpace.ScopeIndent can increase indent too much for lines within code blocks
2503
+ - Fixed bug [ #1547 ] : Wrong token type for backslash in use function
2504
2504
- Thanks to [ Michał Bundyra] [ @michalbundyra ] for the patch
2505
- - Fixed bug #1549 : Squiz.PHP.EmbeddedPhp fixer conflict with // comment before PHP close tag
2505
+ - Fixed bug [ #1549 ] : Squiz.PHP.EmbeddedPhp fixer conflict with // comment before PHP close tag
2506
2506
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2507
- - Fixed bug #1560 : Squiz.Commenting.FunctionComment fatal error when fixing additional param comment lines that have no indent
2507
+ - Fixed bug [ #1560 ] : Squiz.Commenting.FunctionComment fatal error when fixing additional param comment lines that have no indent
2508
+
2509
+ [ #1465 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1465
2510
+ [ #1478 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1478
2511
+ [ #1497 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1497
2512
+ [ #1503 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1503
2513
+ [ #1523 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1523
2514
+ [ #1526 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1526
2515
+ [ #1530 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1530
2516
+ [ #1547 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1547
2517
+ [ #1549 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1549
2518
+ [ #1560 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1560
2508
2519
2509
2520
## [ 3.0.1] - 2017-06-14
2510
2521
### Security
@@ -2523,7 +2534,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2523
2534
- PHPCS now stops looking for a phpcs.xml file as soon as one is found, favoring the closest one to the current dir
2524
2535
- Added missing help text for the --stdin-path CLI option to --help
2525
2536
- Re-added missing help text for the --file-list and --bootstrap CLI options to --help
2526
- - Runner::runPHPCS() and Runner::runPHPCBF() now return an exit code instead of exiting directly (request #1484 )
2537
+ - Runner::runPHPCS() and Runner::runPHPCBF() now return an exit code instead of exiting directly (request [ #1484 ] )
2527
2538
- The Squiz standard now enforces short array syntax by default
2528
2539
- The autoloader is now working correctly with classes created with class_alias()
2529
2540
- The autoloader will now search for files inside all directories in the installed_paths config var
@@ -2544,34 +2555,49 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2544
2555
### Fixed
2545
2556
- Fixed a problem where excluding a message from a custom standard's own sniff would exclude the whole sniff
2546
2557
- This caused some PSR2 errors to be under-reported
2547
- - Fixed bug #1442 : T_NULLABLE detection not working for nullable parameters and return type hints in some cases
2548
- - Fixed bug #1447 : Running the unit tests with a phpunit config file breaks the test suite
2558
+ - Fixed bug [ #1442 ] : T_NULLABLE detection not working for nullable parameters and return type hints in some cases
2559
+ - Fixed bug [ #1447 ] : Running the unit tests with a phpunit config file breaks the test suite
2549
2560
- Unknown arguments were not being handled correctly, but are now stored in $config->unknown
2550
- - Fixed bug #1449 : Generic.Classes.OpeningBraceSameLine doesn't detect comment before opening brace
2561
+ - Fixed bug [ #1449 ] : Generic.Classes.OpeningBraceSameLine doesn't detect comment before opening brace
2551
2562
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2552
- - Fixed bug #1450 : Coding standard located under an installed_path with the same directory name throws an error
2563
+ - Fixed bug [ #1450 ] : Coding standard located under an installed_path with the same directory name throws an error
2553
2564
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2554
- - Fixed bug #1451 : Sniff exclusions/restrictions dont work with custom sniffs unless they use the PHP_CodeSniffer NS
2555
- - Fixed bug #1454 : Squiz.WhiteSpace.OperatorSpacing is not checking spacing on either side of a short ternary operator
2565
+ - Fixed bug [ #1451 ] : Sniff exclusions/restrictions don't work with custom sniffs unless they use the PHP_CodeSniffer NS
2566
+ - Fixed bug [ #1454 ] : Squiz.WhiteSpace.OperatorSpacing is not checking spacing on either side of a short ternary operator
2556
2567
- Thanks to [ Mponos George] [ @gmponos ] for the patch
2557
- - Fixed bug #1495 : Setting an invalid installed path breaks all commands
2558
- - Fixed bug #1496 : Squiz.Strings.DoubleQuoteUsage not unescaping dollar sign when fixing
2568
+ - Fixed bug [ #1495 ] : Setting an invalid installed path breaks all commands
2569
+ - Fixed bug [ #1496 ] : Squiz.Strings.DoubleQuoteUsage not unescaping dollar sign when fixing
2559
2570
- Thanks to [ Michał Bundyra] [ @michalbundyra ] for the patch
2560
- - Fixed bug #1501 : Interactive mode is broken
2561
- - Fixed bug #1504 : PSR2.Namespaces.UseDeclaration hangs fixing use statement with no trailing code
2571
+ - Fixed bug [ #1501 ] : Interactive mode is broken
2572
+ - Fixed bug [ #1504 ] : PSR2.Namespaces.UseDeclaration hangs fixing use statement with no trailing code
2573
+
2574
+ [ #1484 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1484
2575
+ [ #1442 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1442
2576
+ [ #1447 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1447
2577
+ [ #1449 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1449
2578
+ [ #1450 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1450
2579
+ [ #1451 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1451
2580
+ [ #1454 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1454
2581
+ [ #1495 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1495
2582
+ [ #1496 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1496
2583
+ [ #1501 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1501
2584
+ [ #1504 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1504
2562
2585
2563
2586
## [ 2.9.1] - 2017-05-22
2564
2587
### Fixed
2565
- - Fixed bug #1442 : T_NULLABLE detection not working for nullable parameters and return type hints in some cases
2566
- - Fixed bug #1448 : Generic.Classes.OpeningBraceSameLine doesn't detect comment before opening brace
2588
+ - Fixed bug [ #1442 ] : T_NULLABLE detection not working for nullable parameters and return type hints in some cases
2589
+ - Fixed bug [ #1448 ] : Generic.Classes.OpeningBraceSameLine doesn't detect comment before opening brace
2567
2590
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2568
2591
2592
+ [ #1442 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1442
2593
+ [ #1448 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1448
2594
+
2569
2595
## [ 3.0.0] - 2017-05-04
2570
2596
### Changed
2571
- - Added an --ignore-annotations command line argument to ignore all @codingStandards annotations in code comments (request #811 )
2597
+ - Added an --ignore-annotations command line argument to ignore all @codingStandards annotations in code comments (request [ #811 ] )
2572
2598
- This allows you to force errors to be shown that would otherwise be ignored by code comments
2573
- - Also stop files being able to change sniff properties mid way through processing
2574
- - An error is now reported if no sniffs were registered to be run (request #1129 )
2599
+ - Also stop files being able to change sniff properties midway through processing
2600
+ - An error is now reported if no sniffs were registered to be run (request [ #1129 ] )
2575
2601
- The autoloader will now search for files inside the directory of any loaded coding standard
2576
2602
- This allows autoloading of any file inside a custom coding standard without manually requiring them
2577
2603
- Ensure your namespace begins with your coding standard's directory name and follows PSR-4
@@ -2586,9 +2612,13 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2586
2612
- Includes all changes from the 2.9.0 release
2587
2613
2588
2614
### Fixed
2589
- - Fixed bug #834 : PSR2.ControlStructures.SwitchDeclaration does not handle if branches with returns
2615
+ - Fixed bug [ #834 ] : PSR2.ControlStructures.SwitchDeclaration does not handle if branches with returns
2590
2616
- Thanks to [ Fabian Wiget] [ @fabacino ] for the patch
2591
2617
2618
+ [ #811 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/811
2619
+ [ #1129 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1129
2620
+ [ #834 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/834
2621
+
2592
2622
## [ 3.0.0RC4] - 2017-03-02
2593
2623
### Security
2594
2624
- This release contains a fix for a security advisory related to the improper handling of shell commands
0 commit comments