@@ -14,8 +14,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
14
14
15
15
<active >yes</active >
16
16
</lead >
17
- <date >2016-07-14 </date >
18
- <time >09:28 :00</time >
17
+ <date >2016-09-02 </date >
18
+ <time >09:44 :00</time >
19
19
<version >
20
20
<release >2.7.0</release >
21
21
<api >2.7.0</api >
@@ -2488,6 +2488,94 @@ http://pear.php.net/dtd/package-2.0.xsd">
2488
2488
</filelist >
2489
2489
</phprelease >
2490
2490
<changelog >
2491
+ <release >
2492
+ <version >
2493
+ <release >2.7.0</release >
2494
+ <api >2.7.0</api >
2495
+ </version >
2496
+ <stability >
2497
+ <release >stable</release >
2498
+ <api >stable</api >
2499
+ </stability >
2500
+ <date >2016-09-02</date >
2501
+ <license uri =" https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt" >BSD License</license >
2502
+ <notes >
2503
+ - Added --file-list command line argument to allow a list of files and directories to be specified in an external file
2504
+ -- Useful is you have a generated list of files to check that would be too long for the command line
2505
+ -- File and directory paths are listed one per line
2506
+ -- Usage is: phpcs --file-list=/path/to/file-list ...
2507
+ -- Thanks to Blotzu for the patch
2508
+ - Values set using @codingStandardsChangeSetting comments can now contain spaces
2509
+ - Sniff unit tests can now specify a list of test files instead of letting the runner pick them (request #1078)
2510
+ -- Useful if a sniff needs to exclude files based on the environment, or is checking filenames
2511
+ -- Override the new getTestFiles() method to specify your own list of test files
2512
+ - Generic.Functions.OpeningFunctionBraceKernighanRitchie now ignores spacing for function return types
2513
+ -- The sniff code Generic.Functions.OpeningFunctionBraceKernighanRitchie.SpaceAfterBracket has been removed
2514
+ -- Replaced by Generic.Functions.OpeningFunctionBraceKernighanRitchie.SpaceBeforeBrace
2515
+ -- The new error message is slightly clearer as it indicates that a single space is needed before the brace
2516
+ - Squiz.Commenting.LongConditionClosingComment now allows for the length of a code block to be configured
2517
+ -- Set the lineLimit property (default is 20) in your ruleset.xml file to set the code block length
2518
+ -- When the code block length is reached, the sniff will enforce a closing comment after the closing brace
2519
+ -- Thanks to Juliette Reinders Folmer for the patch
2520
+ - Squiz.Commenting.LongConditionClosingComment now allows for the end comment format to be configured
2521
+ -- Set the commentFormat property (default is "//end %s") in your ruleset.xml file to set the format
2522
+ -- The placeholder %s will be replaced with the type of condition opener, e.g., "//end foreach"
2523
+ -- Thanks to Juliette Reinders Folmer for the patch
2524
+ - Generic.PHPForbiddenFunctions now allows forbidden functions to have mixed case
2525
+ -- Previously, it would only do a strtolower comparison
2526
+ -- Error message now shows what case was found in the code and what the correct case should be
2527
+ -- Thanks to Juliette Reinders Folmer for the patch
2528
+ - Added Generic.Classes.OpeningBraceSameLine to ensure opening brace of class/interface/trait is on the same line as the declaration
2529
+ -- Thanks to Juliette Reinders Folmer for the patch
2530
+ - Added Generic.PHP.BacktickOperator to ban the use of the backtick operator for running shell commands
2531
+ -- Thanks to Juliette Reinders Folmer for the patch
2532
+ - Added Generic.PHP.DisallowAlternativePHPTags to ban the use of alternate PHP tags
2533
+ -- Thanks to Juliette Reinders Folmer for the patch
2534
+ - Squiz.WhiteSpace.LanguageConstructSpacing no longer checks for spaces if parenthesis are being used (request #1062)
2535
+ -- Makes this sniff more compatibile with those that check parenthesis spacing of function calls
2536
+ - Squiz.WhiteSpace.ObjectOperatorSpacing now has a setting to ignore newline characters around object operators
2537
+ -- Default remains FALSE, so newlines are not allowed
2538
+ -- Override the "ignoreNewlines" setting in a ruleset.xml file to change
2539
+ -- Thanks to Alex Howansky for the patch
2540
+ - Squiz.Scope.MethodScope now sniffs traits as well as classes and interfaces
2541
+ -- Thanks to Jesse Donat for the patch
2542
+ - PHPCBF is now able to fix Squiz.SelfMemberReference.IncorrectCase errors
2543
+ -- Thanks to Nikola Kovacs for the patch
2544
+ - PHPCBF is now able to fix Squiz.Commenting.VariableComment.IncorrectVarType
2545
+ -- Thanks to Walt Sorensen for the patch
2546
+ - PHPCBF is now able to fix Generic.PHP.DisallowShortOpenTag
2547
+ -- Thanks to Juliette Reinders Folmer for the patch
2548
+ - Improved the formatting of the end brace when auto fixing InlineControlStructure errors (request #1121)
2549
+ - Generic.Functions.OpeningFunctionBraceKernighanRitchie.BraceOnNewLine fix no longer leaves blank line after brace (request #1085)
2550
+ - Generic UpperCaseConstantNameSniff now allows lowercase namespaces in constant definitions
2551
+ -- Thanks to Daniel Schniepp for the patch
2552
+ - Squiz DoubleQuoteUsageSniff is now more tolerant of syntax errors caused by mismatched string tokens
2553
+ - A few sniffs that produce errors based on the current PHP version can now be told to run using a specific PHP version
2554
+ -- Set the php_version config var using --config-set, --runtime-set, or in a ruleset to specify a specific PHP version
2555
+ -- The format of the PHP version is the same as the PHP_VERSION_ID constant (e.g., 50403 for version 5.4.3)
2556
+ -- Supported sniffs are Generic.PHP.DisallowAlternativePHPTags, PSR1.Classes.ClassDeclaration, Squiz.Commenting.FunctionComment
2557
+ -- Thanks to Finlay Beaton for the patch
2558
+ - Fixed bug #985 : Duplicate class definition detection generates false-positives in media queries
2559
+ -- Thanks to Raphael Horber for the patch
2560
+ - Fixed bug #1014 : Squiz VariableCommentSniff doesn't always detect a missing comment
2561
+ - Fixed bug #1066 : Undefined index: quiet in CLI.php during unit test run with -v command line arg
2562
+ - Fixed bug #1072 : Squiz.SelfMemberReference.NotUsed not detected if leading namespace separator is used
2563
+ - Fixed bug #1089 : Rulesets cannot be loaded if the path contains urlencoded characters
2564
+ - Fixed bug #1091 : PEAR and Squiz FunctionComment sniffs throw errors for some invalid @param line formats
2565
+ - Fixed bug #1092 : PEAR.Functions.ValidDefaultValue should not flag type hinted methods with a NULL default argument
2566
+ - Fixed bug #1095 : Generic LineEndings sniff replaces tabs with spaces with --tab-width is set
2567
+ - Fixed bug #1096 : Squiz FunctionDeclarationArgumentSpacing gives incorrect error/fix when variadic operator is followed by a space
2568
+ - Fixed bug #1099 : Group use declarations are incorrectly fixed by the PSR2 standard
2569
+ -- Thanks to Jason McCreary for the patch
2570
+ - Fixed bug #1101 : Incorrect indent errors when breaking out of PHP inside an IF statement
2571
+ - Fixed bug #1102 : Squiz.Formatting.OperatorBracket.MissingBrackets faulty bracketing fix
2572
+ - Fixed bug #1109 : Wrong scope indent reported in anonymous class
2573
+ - Fixed bug #1112 : File docblock not recognized when require_once follows it
2574
+ - Fixed bug #1120 : InlineControlStructureSniff does not handle auto-fixing for control structures that make function calls
2575
+ - Fixed bug #1124 : Squiz.Operators.ComparisonOperatorUsage does not detect bracketed conditions for inline IF statements
2576
+ -- Thanks to Raphael Horber for the patch
2577
+ </notes >
2578
+ </release >
2491
2579
<release >
2492
2580
<version >
2493
2581
<release >2.6.2</release >
0 commit comments