PEAR-News ::
PHP_Shell 0.3.2
QA Release<br />
Bug #18994 Closures not properly supported
[ more >> ]
PHP_DocBlockGenerator 1.1.2
* Request 14162: Want to use other licenses.<br />
* Bug 15490: Eliminate var_export() output from PHP_CompatInfo.<br />
* Bug 16181: Ordering issues.<br />
* Bug 16193: Expected 1 space before variable type.<br />
* Bug 18980: Get test suite working again.
[ more >> ]
PHP_CodeSniffer 1.3.2
- Added Generic JSHintSniff to run jshint.js over a JS file and report warnings<br />
-- Set jshint path using phpcs --config-set jshint_path /path/to/jshint-rhino.js<br />
-- Set rhino path using phpcs --config-set rhino_path /path/to/rhino<br />
-- Thanks to Alexander Weiß for the contribution<br />
- Nowdocs are now tokenized using PHP_CodeSniffer specific T_NOWDOC tokens for easier identification<br />
- Generic UpperCaseConstantNameSniff no longer throws errors for namespaces<br />
-- Thanks to Jaroslav HanslÃÂk for the patch<br />
- Squiz NonExecutableCodeSniff now detects code after thrown exceptions<br />
-- Thanks to Jaroslav HanslÃÂk for the patch<br />
- Squiz OperatorSpacingSniff now ignores references<br />
-- Thanks to Jaroslav HanslÃÂk for the patch<br />
- Squiz FunctionCommentSniff now reports a missing function comment if it finds a standard code comment instead<br />
- Squiz FunctionCommentThrownTagSniff no longer reports errors if it can't find a function comment<br />
- Fixed unit tests not running under Windows<br />
-- Thanks to Jaroslav HanslÃÂk for the patch<br />
- Fixed bug #18964 : "$stackPtr must be of type T_VARIABLE" on heredocs and nowdocs<br />
- Fixed bug #18973 : phpcs is looking for variables in a nowdoc<br />
- Fixed bug #18974 : Blank line causes "Multi-line function call not indented correctly"<br />
-- Adds new error message to ban empty lines in multi-line function calls<br />
- Fixed bug #18975 : "Closing parenthesis must be on a line by itself" also causes indentation error
[ more >> ]
PHP_CodeSniffer 1.3.1
- All report file command line arguments now work with relative paths (request #17240)<br />
- The extensions command line argument now supports multi-part file extensions (request #17227)<br />
- Added report type --report=hgblame to show number of errors/warnings committed by authors in a Mercurial repository<br />
-- Has the same functionality as the svnblame report<br />
-- Thanks to Ben Selby for the patch<br />
- Added T_BACKTICK token type to make detection of backticks easier (request #18799)<br />
- Added pattern matching support to Generic ForbiddenFunctionsSniff<br />
-- If you are extending it and overriding register() or addError() you will need to review your sniff<br />
- Namespaces are now recognised as scope openers, although they do not require braces (request #18043)<br />
- Added new ByteOrderMarkSniff to Generic standard (request #18194)<br />
-- Throws an error if a byte order mark is found in any PHP file<br />
-- Thanks to Piotr Karas for the contribution<br />
- PHP_Timer output is no longer included in reports when being written to a file (request #18252)<br />
-- Also now shown for all report types if nothing is being printed to the screen<br />
- Generic DeprecatedFunctionSniff now reports functions as deprecated and not simply forbidden (request #18288)<br />
- PHPCS now accepts file contents from STDIN (request #18447)<br />
-- Example usage: cat temp.php | phpcs [options] -OR- phpcs [options] < temp.php<br />
-- Not every sniff will work correctly due to the lack of a valid file path<br />
- PHP_CodeSniffer_Exception no longer extends PEAR_Exception (request #18483)<br />
-- PEAR_Exception added a requirement that PEAR had to be installed<br />
-- PHP_CodeSniffer is not used as a library, so unlikely to have any impact<br />
- PEAR FileCommentSniff now allows GIT IDs in the version tag (request #14874)<br />
- AbstractVariableSniff now supports heredocs<br />
-- Also includes some variable detection fixes<br />
-- Thanks to Sam Graham for the patch<br />
- Squiz FileCommentSniff now enforces rule that package names cannot start with the word Squiz<br />
- MySource AssignThisSniff now allows "this" to be assigned to the private var _self<br />
- Fixed issue in Squiz FileCommentSniff where suggested package name was the same as the incorrect package name<br />
- Fixed some issues with Squiz ArrayDeclarationSniff when using function calls in array values<br />
- Fixed doc generation so it actually works again<br />
- Also now works when being run from an SVN checkout as well as when installed as a PEAR package<br />
- Should fix bug #18949 : Call to private method from static<br />
- PEAR ClassDeclaration sniff now supports indentation checks when using the alternate namespace syntax<br />
- PEAR.Classes.ClassDeclaration.SpaceBeforeBrace message now contains 2 variables instead of 1<br />
- Sniff allows overriding of the default indent level, which is set to 4<br />
- Fixes bug #18933 : Alternative namespace declaration syntax confuses scope sniffs<br />
- Fixed bug #18465 : "self::" does not work in lambda functions<br />
-- Also corrects conversion of T_FUNCTION tokens to T_CLOSURE, which was not fixing token condition arrays<br />
- Fixed bug #18543 : CSS Tokenizer deletes too many #<br />
- Fixed bug #18624 : @throws namespace problem<br />
-- Thanks to Gavin Davies for the patch<br />
- Fixed bug #18628 : Generic.Files.LineLength gives incorrect results with Windows line-endings<br />
- Fixed bug #18633 : CSS Tokenizer doesn't replace T_LIST tokens inside some styles<br />
- Fixed bug #18657 : anonymous functions wrongly indented<br />
- Fixed bug #18670 : UpperCaseConstantNameSniff fails on dynamic retrieval of class constant<br />
- Fixed bug #18709 : Code sniffer sniffs file if even if it's in --ignore<br />
-- Thanks to Artem Lopata for the patch<br />
- Fixed bug #18762 : Incorrect handling of define and constant in UpperCaseConstantNameSniff<br />
-- Thanks to Thomas Baker for the patch<br />
- Fixed bug #18769 : CSS Tokenizer doesn't replace T_BREAK tokens inside some styles<br />
- Fixed bug #18835 : Unreachable errors of inline returns of closure functions<br />
-- Thanks to Patrick Schmidt for the patch<br />
- Fixed bug #18839 : Fix miscount of warnings in AbstractSniffUnitTest.php<br />
-- Thanks to Sam Graham for the patch<br />
- Fixed bug #18844 : Generic_Sniffs_CodeAnalysis_UnusedFunctionParameterSniff with empty body<br />
-- Thanks to Dmitri Medvedev for the patch<br />
- Fixed bug #18847 : Running Squiz_Sniffs_Classes_ClassDeclarationSniff results in PHP notice<br />
- Fixed bug #18868 : jslint+rhino: errors/warnings not detected<br />
-- Thanks to Christian Weiske for the patch<br />
- Fixed bug #18879 : phpcs-svn-pre-commit requires escapeshellarg<br />
-- Thanks to Bjorn Katuin for the patch<br />
- Fixed bug #18951 : weird behaviour with closures and multi-line use () params
[ more >> ]
PHP_UML 1.6.0
* API refactoring (introduction of Importer and Exporter classes)<br />
* XMI is now a "full" input format, just like PHP<br />
* various bugfixes (namespaces in PHP class generation, for eg)
[ more >> ]
PHP_CodeSniffer 1.3.0
- Add a new token T_CLOSURE that replaces T_FUNCTION if the function keyword is anonymous<br />
- Many Squiz sniffs no longer report errors when checking closures; they are now ignored<br />
- Fixed some error messages in PEAR MultiLineConditionSniff that were not using placeholders for message data<br />
- AbstractVariableSniff now correctly finds variable names wrapped with curly braces inside double quoted strings<br />
- PEAR FunctionDeclarationSniff now ignores arrays in argument default values when checking multi-line declarations<br />
- Fixed bug #18200 : Using custom named ruleset file as standard no longer works<br />
- Fixed bug #18196 : PEAR MultiLineCondition.SpaceBeforeOpenBrace not consistent with newline chars<br />
- Fixed bug #18204 : FunctionCommentThrowTag picks wrong exception type when throwing function call<br />
- Fixed bug #18222 : Add __invoke method to PEAR standard<br />
- Fixed bug #18235 : Invalid error generation in Squiz.Commenting.FunctionCommentThrowTag<br />
- Fixed bug #18250 : --standard with relative path skips Standards' "implicit" sniffs<br />
- Fixed bug #18274 : Multi-line IF and function call indent rules conflict<br />
- Fixed bug #18282 : Squiz doesn't handle final keyword before function comments<br />
-- Thanks to Dave Perrett for the patch<br />
- Fixed bug #18336 : Function isUnderscoreName gives php notices
[ more >> ]
PHP_UML 1.5.5
* Bugfix (install script)
[ more >> ]
PHP_UML 1.5.4
* Bugfix (install script)
[ more >> ]
PHP_CodeSniffer 1.3.0RC2
- You can now print multiple reports for each run and print each to the screen or a file (request #12434)<br />
-- Format is --report-[report][=file] (e.g., --report-xml=out.xml)<br />
-- Printing to screen is done by leaving [file] empty (e.g., --report-xml)<br />
-- Multiple reports can be specified in this way (e.g., --report-summary --report-xml=out.xml)<br />
-- The standard --report and --report-file command line arguments are unchanged<br />
- Added -d command line argument to set php.ini settings while running (request #17244)<br />
-- Usage is: phpcs -d memory_limit=32M -d ...<br />
-- Thanks to Ben Selby for the patch<br />
- Added -p command line argument to show progress during a run<br />
-- Dot means pass, E means errors found, W means only warnings found and S means skipped file<br />
-- Particularly good for runs where you are checking more than 100 files<br />
-- Enable by default with --config-set show_progress 1<br />
-- Will not print anything if you are already printing verbose output<br />
-- This has caused a big change in the way PHP_CodeSniffer processes files (API changes around processing)<br />
- You can now add exclude rules for individual sniffs or error messages (request #17903)<br />
-- Only available when using a ruleset.xml file to specify rules<br />
-- Uses the same exclude-pattern tags as normal but allows them inside rule tags<br />
- Using the -vvv option will now print a list of sniffs executed for each file and how long they took to process<br />
- Added Generic ClosureLinterSniff to run Google's gjslint over your JS files<br />
- The XML and CSV reports now include the severity of the error (request #18165)<br />
-- The Severity column in the CSV report has been renamed to Type, and a new Severity column added for this<br />
- Fixed issue with Squiz FunctionCommentSniff reporting incorrect type hint when default value uses namespace<br />
-- Thanks to Anti Veeranna for the patch<br />
- Generic FileLengthSniff now uses iconv_strlen to check line length if an encoding is specified (request #14237)<br />
- Generic UnnecessaryStringConcatSniff now allows strings to be combined to form a PHP open or close tag<br />
- Squiz SwitchDeclarationSniff no longer reports indentation errors for BREAK statements inside IF conditions<br />
- Interactive mode now always prints the full error report (ignores command line)<br />
- Improved regular expression detection in JavaScript files<br />
-- Added new T_TYPEOF token that can be used to target the typeof JS operator<br />
-- Fixes bug #17611 : Regular expression tokens not recognised<br />
- Squiz ScopeIndentSniff removed<br />
-- Squiz standard no longer requires additional indents between ob_* methods<br />
-- Also removed Squiz OutputBufferingIndentSniff that was checking the same thing<br />
- PHP_CodeSniffer_File::getMemberProperties() performance improved significantly<br />
-- Improves performance of Squiz ValidVariableNameSniff significantly<br />
- Squiz OperatorSpacingSniff performance improved significantly<br />
- Squiz NonExecutableCodeSniff performance improved significantly<br />
-- Will throw duplicate errors in some cases now, but these should be rare<br />
- MySource IncludeSystemSniff performance improved significantly<br />
- MySource JoinStringsSniff no longer reports an error when using join() on a named JS array<br />
- Warnings are now reported for each file when they cannot be opened instead of stopping the script<br />
-- Hide warnings with the -n command line argument<br />
-- Can override the warnings using the code Internal.DetectLineEndings<br />
- Fixed bug #17693 : issue with pre-commit hook script with filenames that start with v<br />
- Fixed bug #17860 : isReference function fails with references in array<br />
-- Thanks to Lincoln Maskey for the patch<br />
- Fixed bug #17902 : Cannot run tests when tests are symlinked into tests dir<br />
-- Thanks to Matt Button for the patch<br />
- Fixed bug #17928 : Improve error message for Generic_Sniffs_PHP_UpperCaseConstantSniff<br />
-- Thanks to Stefano Kowalke for the patch<br />
- Fixed bug #18039 : JS Tokenizer crash when ] is last character in file<br />
- Fixed bug #18047 : Incorrect handling of namespace aliases as constants<br />
-- Thanks to Dmitri Medvedev for the patch<br />
- Fixed bug #18072 : Impossible to exclude path from processing when symlinked<br />
- Fixed bug #18073 : Squiz.PHP.NonExecutableCode fault<br />
- Fixed bug #18117 : PEAR coding standard: Method constructor not sniffed as a function<br />
- Fixed bug #18135 : Generic FunctionCallArgumentSpacingSniff reports function declaration errors<br />
- Fixed bug #18140 : Generic scope indent in exact mode: strange expected/found values for switch<br />
- Fixed bug #18145 : Sniffs are not loaded for custom ruleset file<br />
-- Thanks to Scott McCammon for the patch<br />
- Fixed bug #18152 : While and do-while with AbstractPatternSniff<br />
- Fixed bug #18191 : Squiz.PHP.LowercasePHPFunctions does not work with new Date()<br />
- Fixed bug #18193 : CodeSniffer doesn't reconize CR (\r) line endings
[ more >> ]
PHP_Parser 0.2.2
Automatically built QA release<br />
Bug #17671 The PHP_Parser_CoreyyToken bad __toString method - jespino
[ more >> ]
|