Skip to content

Commit 86dd55a

Browse files
committed
Prepare for 2.8.0 release
1 parent 6c82fe5 commit 86dd55a

File tree

2 files changed

+80
-5
lines changed

2 files changed

+80
-5
lines changed

CodeSniffer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class PHP_CodeSniffer
7373
*
7474
* @var string
7575
*/
76-
const VERSION = '2.7.2';
76+
const VERSION = '2.8.0';
7777

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

package.xml

+79-4
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ http://pear.php.net/dtd/package-2.0.xsd">
1414
<email>[email protected]</email>
1515
<active>yes</active>
1616
</lead>
17-
<date>2016-11-30</date>
18-
<time>15:01:00</time>
17+
<date>2017-02-02</date>
18+
<time>14:23:00</time>
1919
<version>
20-
<release>2.7.2</release>
21-
<api>2.7.2</api>
20+
<release>2.8.0</release>
21+
<api>2.8.0</api>
2222
</version>
2323
<stability>
2424
<release>stable</release>
@@ -2461,8 +2461,11 @@ http://pear.php.net/dtd/package-2.0.xsd">
24612461
<install as="CodeSniffer/Core/IsCamelCapsTest.php" name="tests/Core/IsCamelCapsTest.php" />
24622462
<install as="CodeSniffer/Core/ErrorSuppressionTest.php" name="tests/Core/ErrorSuppressionTest.php" />
24632463
<install as="CodeSniffer/Core/File/FindExtendedClassNameTest.php" name="tests/Core/File/FindExtendedClassNameTest.php" />
2464+
<install as="CodeSniffer/Core/File/FindExtendedClassNameTest.inc" name="tests/Core/File/FindExtendedClassNameTest.inc" />
24642465
<install as="CodeSniffer/Core/File/FindImplementedInterfaceNamesTest.php" name="tests/Core/File/FindImplementedInterfaceNamesTest.php" />
2466+
<install as="CodeSniffer/Core/File/FindImplementedInterfaceNamesTest.inc" name="tests/Core/File/FindImplementedInterfaceNamesTest.inc" />
24652467
<install as="CodeSniffer/Core/File/GetMethodParametersTest.php" name="tests/Core/File/GetMethodParametersTest.php" />
2468+
<install as="CodeSniffer/Core/File/GetMethodParametersTest.inc" name="tests/Core/File/GetMethodParametersTest.inc" />
24662469
<install as="CodeSniffer/Standards/AllSniffs.php" name="tests/Standards/AllSniffs.php" />
24672470
<install as="CodeSniffer/Standards/AbstractSniffUnitTest.php" name="tests/Standards/AbstractSniffUnitTest.php" />
24682471
</filelist>
@@ -2480,15 +2483,87 @@ http://pear.php.net/dtd/package-2.0.xsd">
24802483
<install as="CodeSniffer/Core/IsCamelCapsTest.php" name="tests/Core/IsCamelCapsTest.php" />
24812484
<install as="CodeSniffer/Core/ErrorSuppressionTest.php" name="tests/Core/ErrorSuppressionTest.php" />
24822485
<install as="CodeSniffer/Core/File/FindExtendedClassNameTest.php" name="tests/Core/File/FindExtendedClassNameTest.php" />
2486+
<install as="CodeSniffer/Core/File/FindExtendedClassNameTest.inc" name="tests/Core/File/FindExtendedClassNameTest.inc" />
24832487
<install as="CodeSniffer/Core/File/FindImplementedInterfaceNamesTest.php" name="tests/Core/File/FindImplementedInterfaceNamesTest.php" />
2488+
<install as="CodeSniffer/Core/File/FindImplementedInterfaceNamesTest.inc" name="tests/Core/File/FindImplementedInterfaceNamesTest.inc" />
24842489
<install as="CodeSniffer/Core/File/GetMethodParametersTest.php" name="tests/Core/File/GetMethodParametersTest.php" />
2490+
<install as="CodeSniffer/Core/File/GetMethodParametersTest.inc" name="tests/Core/File/GetMethodParametersTest.inc" />
24852491
<install as="CodeSniffer/Standards/AllSniffs.php" name="tests/Standards/AllSniffs.php" />
24862492
<install as="CodeSniffer/Standards/AbstractSniffUnitTest.php" name="tests/Standards/AbstractSniffUnitTest.php" />
24872493
<ignore name="scripts/phpcs.bat" />
24882494
<ignore name="scripts/phpcbf.bat" />
24892495
</filelist>
24902496
</phprelease>
24912497
<changelog>
2498+
<release>
2499+
<version>
2500+
<release>2.8.0</release>
2501+
<api>2.8.0</api>
2502+
</version>
2503+
<stability>
2504+
<release>stable</release>
2505+
<api>stable</api>
2506+
</stability>
2507+
<date>2017-02-02</date>
2508+
<license uri="https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt">BSD License</license>
2509+
<notes>
2510+
- The Internal.NoCodeFound error is no longer generated for content sourced from STDIN
2511+
-- This should stop some Git hooks generating errors because PHPCS is trying to process the refs passed on STDIN
2512+
- Squiz.Commenting.DocCommentAlignment now checks comments on class properties defined using the VAR keyword
2513+
-- Thanks to Klaus Purer for the patch
2514+
- The getMethodParameters() method now recognises "self" as a valid type hint
2515+
-- The return array now contains a new "content" index containing the raw content of the param definition
2516+
-- Thanks to Juliette Reinders Folmer for the patch
2517+
- The getMethodParameters() method now supports nullable types
2518+
-- The return array now contains a new "nullable_type" index set to true or false for each method param
2519+
-- Thanks to Juliette Reinders Folmer for the patch
2520+
- The getMethodParameters() method now supports closures
2521+
-- Thanks to Juliette Reinders Folmer for the patch
2522+
- Added more guard code for JS files with syntax errors (request #1271 and request #1272)
2523+
- Added more guard code for CSS files with syntax errors (request #1304)
2524+
- PEAR.Commenting.FunctionComment fixers now correctly handle multi-line param comments
2525+
- AbstractVariableSniff now supports anonymous classes
2526+
-- Thanks to Juliette Reinders Folmer for the patch
2527+
- Generic.NamingConventions.ConstructorName and PEAR.NamingConventions.ValidVariable now support anonymous classes
2528+
- Generic.NamingConventions.CamelCapsFunctionName and PEAR.NamingConventions.ValidFunctionName now support anonymous classes
2529+
-- Thanks to Juliette Reinders Folmer for the patch
2530+
- Generic.CodeAnalysis.UnusedFunctionParameter and PEAR.Functions.ValidDefaultValue now support closures
2531+
-- Thanks to Juliette Reinders Folmer for the patch
2532+
- PEAR.NamingConventions.ValidClassName and Squiz.Classes.ValidClassName now support traits
2533+
-- Thanks to Juliette Reinders Folmer for the patch
2534+
- Generic.Functions.FunctionCallArgumentSpacing now supports closures other PHP-provided functions
2535+
-- Thanks to Algirdas Gurevicius for the patch
2536+
- Fixed an error where a nullable type character was detected as an inline then token
2537+
-- A new T_NULLABLE token has been added to represent the ? nullable type character
2538+
-- Thanks to Jaroslav Hanslík for the patch
2539+
- Squiz.WhiteSpace.SemicolonSpacing no longer removes comments while fixing the placement of semicolons
2540+
-- Thanks to Algirdas Gurevicius for the patch
2541+
- Fixed bug #1230 : JS tokeniser incorrectly tokenises bitwise shifts as comparison
2542+
-- Thanks to Ryan McCue for the patch
2543+
- Fixed bug #1237 : Uninitialized string offset in PHP Tokenizer on PHP 5.2
2544+
- Fixed bug #1239 : Warning when static method name is 'default'
2545+
- Fixed bug #1240 : False positive for function names starting with triple underscore
2546+
-- Thanks to Juliette Reinders Folmer for the patch
2547+
- Fixed bug #1245 : SELF is not recognised as T_SELF token in: return new self
2548+
- Fixed bug #1246 : A mix of USE statements with and without braces can cause the tokenizer to mismatch brace tokens
2549+
-- Thanks to Michał Bundyra for the patch
2550+
- Fixed bug #1249 : GitBlame report requires a .git directory
2551+
- Fixed bug #1252 : Squiz.Strings.ConcatenationSpacing fix creates syntax error when joining a number to a string
2552+
- Fixed bug #1253 : Generic.ControlStructures.InlineControlStructure fix creates syntax error fixing if-try/catch
2553+
- Fixed bug #1255 : Inconsistent indentation check results when ELSE on new line
2554+
- Fixed bug #1257 : Double dash in CSS class name can lead to "Named colours are forbidden" false positives
2555+
- Fixed bug #1260 : Syntax errors not being shown when error_prepend_string is set
2556+
-- Thanks to Juliette Reinders Folmer for the patch
2557+
- Fixed bug #1264 : Array return type hint is sometimes detected as T_ARRAY_HINT instead of T_RETURN_TYPE
2558+
-- Thanks to Jaroslav Hanslík for the patch
2559+
- Fixed bug #1265 : ES6 arrow function raises unexpected operator spacing errors
2560+
- Fixed bug #1267 : Fixer incorrectly handles filepaths with repeated dir names
2561+
-- Thanks to Sergey Ovchinnikov for the patch
2562+
- Fixed bug #1276 : Commenting.FunctionComment.InvalidReturnVoid conditional issue with anonymous classes
2563+
- Fixed bug #1277 : Squiz.PHP.DisallowMultipleAssignments.Found error when var assignment is on the same line as an open tag
2564+
- Fixed bug #1284 : Squiz.Arrays.ArrayBracketSpacing.SpaceBeforeBracket false positive match for short list syntax
2565+
</notes>
2566+
</release>
24922567
<release>
24932568
<version>
24942569
<release>2.7.1</release>

0 commit comments

Comments
 (0)