Skip to content

Commit cc0a812

Browse files
committed
Prepare for 2.3.0 release
1 parent a511929 commit cc0a812

File tree

2 files changed

+60
-3
lines changed

2 files changed

+60
-3
lines changed

CodeSniffer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class PHP_CodeSniffer
7373
*
7474
* @var string
7575
*/
76-
const VERSION = '2.2.1';
76+
const VERSION = '2.3.0';
7777

7878
/**
7979
* Package stability; either stable, beta or alpha.

package.xml

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
1717
<date>2015-01-22</date>
1818
<time>09:42:00</time>
1919
<version>
20-
<release>2.2.1</release>
21-
<api>2.2.1</api>
20+
<release>2.3.0</release>
21+
<api>2.3.0</api>
2222
</version>
2323
<stability>
2424
<release>stable</release>
@@ -2345,6 +2345,63 @@ http://pear.php.net/dtd/package-2.0.xsd">
23452345
</filelist>
23462346
</phprelease>
23472347
<changelog>
2348+
<release>
2349+
<version>
2350+
<release>2.3.0</release>
2351+
<api>2.3.0</api>
2352+
</version>
2353+
<stability>
2354+
<release>stable</release>
2355+
<api>stable</api>
2356+
</stability>
2357+
<date>2015-03-04</date>
2358+
<license uri="https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt">BSD License</license>
2359+
<notes>
2360+
- The existence of the main config file is now cached to reduce is_file() calls when it doesn't exist (request #486)
2361+
- Abstract classes inside the Sniffs directory are now ignored even if they are named [Name]Sniff.php (request #476)
2362+
-- Thanks to David Vernet for the patch
2363+
- PEAR and Squiz FileComment sniffs no longer have @ in their error codes
2364+
-- e.g., PEAR.Commenting.FileComment.Duplicate@categoryTag becomes PEAR.Commenting.FileComment.DuplicateCategoryTag
2365+
-- e.g., Squiz.Commenting.FileComment.Missing@categoryTag becomes Squiz.Commenting.FileComment.MissingCategoryTag
2366+
- PEAR MultiLineConditionSniff now allows comment lines inside multi-line IF statement conditions
2367+
-- Thanks to Klaus Purer for the patch
2368+
- Generic ForbiddenFunctionsSniff now supports setting null replacements in ruleset files (request #263)
2369+
- Generic opening function brace sniffs now support checking of closures
2370+
-- Set the checkClosures property to TRUE (default is FALSE) in your ruleset.xml file to enable this
2371+
-- Can also set the checkFunctions property to FALSE (default is TRUE) in your ruleset.xml file to only check closures
2372+
-- Affects OpeningFunctionBraceBsdAllmanSniff and OpeningFunctionBraceKernighanRitchieSniff
2373+
- Generic OpeningFunctionBraceKernighanRitchieSniff can now fix all the errors it finds
2374+
- Generic OpeningFunctionBraceKernighanRitchieSniff now allows empty functions with braces next to each other
2375+
- Generic OpeningFunctionBraceBsdAllmanSniff now allows empty functions with braces next to each other
2376+
- Improved auto report width for the "full" report
2377+
- Improved conflict detection during auto fixing
2378+
- Generic ScopeIndentSniff is no longer confused by empty closures
2379+
- Squiz ControlSignatureSniff now always ignores comments (fixes bug #490)
2380+
-- Include the Squiz.Commenting.PostStatementComment sniff in your ruleset.xml to ban these comments again
2381+
- Squiz OperatorSpacingSniff no longer throws errors for code in the form ($foo || -1 === $bar)
2382+
- Fixed errors tokenizing T_ELSEIF tokens on HHVM 3.5
2383+
- Squiz ArrayDeclarationSniff is no longer tricked by comments after array values
2384+
- PEAR IncludingFileSniff no longer produces invalid code when removing parenthesis from require/include statements
2385+
- Fixed bug #415 : The @codingStandardsIgnoreStart has no effect during fixing
2386+
- Fixed bug #432 : Properties of custom sniffs cannot be configured
2387+
- Fixed bug #453 : PSR2 standard does not allow closing tag for mixed PHP/HTML files
2388+
- Fixed bug #457 : FunctionCallSignature sniffs do not support here/nowdoc syntax and can cause syntax error when fixing
2389+
- Fixed bug #466 : PropertyLabelSpacing JS fixer issue when there is no space after colon
2390+
- Fixed bug #473 : Writing a report for an empty folder to existing file includes the existing contents
2391+
- Fixed bug #485 : PHP notice in Squiz.Commenting.FunctionComment when checking malformed @throws comment
2392+
- Fixed bug #491 : Generic InlineControlStructureSniff can correct with missing semicolon
2393+
-- Thanks to Jesse Donat for the patch
2394+
- Fixed bug #492 : Use statements don't increase the scope indent
2395+
- Fixed bug #493 : PSR1_Sniffs_Methods_CamelCapsMethodNameSniff false positives for some magic method detection
2396+
-- Thanks to Andreas Möller for the patch
2397+
- Fixed bug #496 : Closures in PSR2 are not checked for a space after the function keyword
2398+
- Fixed bug #497 : Generic InlineControlStructureSniff does not support alternative SWITCH syntax
2399+
- Fixed bug #500 : Functions not supported as values in Squiz ArrayDeclaration sniff
2400+
- Fixed bug #501 : ScopeClosingBrace and ScopeIndent conflict with closures used as array values
2401+
-- Generic ScopeIndentSniff may now report fewer errors for closures, but perform the same fixes
2402+
- Fixed bug #502 : PSR1 SideEffectsSniff sees declare() statements as side effects
2403+
</notes>
2404+
</release>
23482405
<release>
23492406
<version>
23502407
<release>2.2.0</release>

0 commit comments

Comments
 (0)