@@ -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 >2017-05-04 </date >
18
- <time >10:31 :00</time >
17
+ <date >2017-06-14 </date >
18
+ <time >11:21 :00</time >
19
19
<version >
20
20
<release >3.0.1</release >
21
21
<api >3.0.1</api >
@@ -1580,6 +1580,68 @@ http://pear.php.net/dtd/package-2.0.xsd">
1580
1580
</filelist >
1581
1581
</phprelease >
1582
1582
<changelog >
1583
+ <release >
1584
+ <version >
1585
+ <release >3.0.1</release >
1586
+ <api >3.0.1</api >
1587
+ </version >
1588
+ <stability >
1589
+ <release >stable</release >
1590
+ <api >stable</api >
1591
+ </stability >
1592
+ <date >2017-06-14</date >
1593
+ <license uri =" https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt" >BSD License</license >
1594
+ <notes >
1595
+ - This release contains a fix for a security advisory related to the improper handling of a shell command
1596
+ -- A properly crafted filename would allow for arbitrary code execution when using the --filter=gitmodified command line option
1597
+ -- All version 3 users are encouraged to upgrade to this version, especially if you are checking 3rd-party code
1598
+ --- e.g., you run PHPCS over libraries that you did not write
1599
+ --- e.g., you provide a web service that runs PHPCS over user-uploaded files or 3rd-party repositories
1600
+ --- e.g., you allow external tool paths to be set by user-defined values
1601
+ -- If you are unable to upgrade but you check 3rd-party code, ensure you are not using the Git modified filter
1602
+ -- This advisory does not affect PHP_CodeSniffer version 2.
1603
+ -- Thanks to Sergei Morozov for the report and patch
1604
+
1605
+ - Arguments on the command line now override or merge with those specified in a ruleset.xml file in all cases
1606
+ - PHPCS now stops looking for a phpcs.xml file as soon as one is found, favoring the closest one to the current dir
1607
+ - Added missing help text for the --stdin-path CLI option to --help
1608
+ - Re-added missing help text for the --file-list and --bootstrap CLI options to --help
1609
+ - Runner::runPHPCS() and Runner::runPHPCBF() now return an exit code instead of exiting directly (request #1484)
1610
+ - The Squiz standard now enforces short array syntax by default
1611
+ - The autoloader is now working correctly with classes created with class_alias()
1612
+ - The autoloader will now search for files inside all directories in the installed_paths config var
1613
+ -- This allows autoloading of files inside included custom coding standards without manually requiring them
1614
+ - You can now specify a namespace for a custom coding standard, used by the autoloader to load non-sniff helper files
1615
+ -- Also used by the autoloader to help other standards directly include sniffs for your standard
1616
+ -- Set the value to the namespace prefix you are using for sniff files (everything up to \Sniffs\)
1617
+ -- e.g., if your namespace format is MyProject\CS\Standard\Sniffs\Category set the namespace to MyProject\CS\Standard
1618
+ -- If ommitted, the namespace is assumed to be the same as the directory name containing the ruleset.xml file
1619
+ -- The namespace is set in the ruleset tag of the ruleset.xml file
1620
+ -- e.g., ruleset name="My Coding Standard" namespace="MyProject\CS\Standard"
1621
+ - Rulesets can now specify custom autoloaders using the new autoload tag
1622
+ -- Autloaders are included while the ruleset is being processed and before any custom sniffs are included
1623
+ -- Allows for very custom autoloading of helper classes well before the boostrap files are included
1624
+ - The PEAR standard now includes Squiz.Commenting.DocCommentAlignment
1625
+ -- It previously broke comments onto multiple lines, but didn't align them
1626
+ - Fixed a problem where excluding a message from a custom standard's own sniff would exclude the whole sniff
1627
+ -- This caused some PSR2 errors to be under-reported
1628
+ - Fixed bug #1442 : T_NULLABLE detection not working for nullable parameters and return type hints in some cases
1629
+ - Fixed bug #1447 : Running the unit tests with a phpunit config file breaks the test suite
1630
+ -- Unknown arguments were not being handled correctly, but are now stored in $config->unknown
1631
+ - Fixed bug #1449 : Generic.Classes.OpeningBraceSameLine doesn't detect comment before opening brace
1632
+ -- Thanks to Juliette Reinders Folmer for the patch
1633
+ - Fixed bug #1450 : Coding standard located under an installed_path with the same directory name throws an error
1634
+ -- Thanks to Juliette Reinders Folmer for the patch
1635
+ - Fixed bug #1451 : Sniff exclusions/restrictions dont work with custom sniffs unless they use the PHP_CodeSniffer NS
1636
+ - Fixed bug #1454 : Squiz.WhiteSpace.OperatorSpacing is not checking spacing on either side of a short ternary operator
1637
+ -- Thanks to Mponos George for the patch
1638
+ - Fixed bug #1495 : Setting an invalid installed path breaks all commands
1639
+ - Fixed bug #1496 : Squiz.Strings.DoubleQuoteUsage not unescaping dollar sign when fixing
1640
+ -- Thanks to Michał Bundyra for the patch
1641
+ - Fixed bug #1501 : Interactive mode is broken
1642
+ - Fixed bug #1504 : PSR2.Namespaces.UseDeclaration hangs fixing use statement with no trailing code
1643
+ </notes >
1644
+ </release >
1583
1645
<release >
1584
1646
<version >
1585
1647
<release >3.0.0</release >
0 commit comments