Releases
2.5.0
PHPCS will now look for a phpcs.xml file in parent directories as well as the current directory (request #626 )
PHPCS will now use a phpcs.xml file even if files are specified on the command line
This file is still only used if no standard is specified on the command line
Added support for a phpcs.xml.dist file (request #583 )
If both a phpcs.xml and phpcs.xml.dist file are present, the phpcs.xml file will be used
Added support for setting PHP ini values in ruleset.xml files (request #560 )
Setting the value of the new ini tags to name="memory_limit" value="32M" is the same as -d memory_limit=32M
Added support for one or more bootstrap files to be run before processing begins
Use the --bootstrap=file,file,file command line argument to include bootstrap files
Useful if you want to override some of the high-level settings of PHPCS or PHPCBF
Thanks to John Maguire for the patch
Added additional verbose output for CSS tokenizing
Squiz ComparisonOperatorUsageSniff now checks FOR, WHILE and DO-WHILE statements
Thanks to Arnout Boks for the patch
Fixed bug #660 : Syntax checks can fail on Windows with PHP5.6
Fixed bug #784 : $this->trait is seen as a T_TRAIT token
Fixed bug #786 : Switch indent issue with short array notation
Fixed bug #787 : SpacingAfterDefaultBreak confused by multi-line statements
Fixed bug #797 : Parsing CSS url() value breaks further parsing
Fixed bug #805 : Squiz.Commenting.FunctionComment.InvalidTypeHint on Scalar types on PHP7
Fixed bug #807 : Cannot fix line endings when open PHP tag is not on the first line
Fixed bug #808 : JS tokeniser incorrectly setting some function and class names to control structure tokens
Fixed bug #809 : PHPCBF can break a require_once statement with a space before the open parenthesis
Fixed bug #813 : PEAR FunctionCallSignature checks wrong indent when first token on line is part of a multi-line string
You can’t perform that action at this time.