CHANGELOG for PHP CS Fixer ========================== This file contains changelogs for stable releases only. Changelog for v1.13.3 --------------------- * minor #3042 Update gitter address (keradus) Changelog for v1.13.2 --------------------- * minor #2946 Detect extra old installations (keradus) Changelog for v1.13.1 --------------------- * minor #2342 Application - adjust test to not depend on symfony/console version (keradus) * minor #2344 AppVeyor: enforce PHP version (keradus) Changelog for v1.13.0 --------------------- * bug #2303 ClassDefinitionFixer - Anonymous classes fixing (SpacePossum) * feature #2208 Added fixer for PHPUnit's @expectedException annotation (ro0NL) * feature #2249 Added ProtectedToPrivateFixer (Slamdunk, SpacePossum) * feature #2264 SelfUpdateCommand - Do not update to next major version by default (SpacePossum) * feature #2328 ClassDefinitionFixer - Anonymous classes format by PSR12 (SpacePossum) * feature #2333 PhpUnitFqcnAnnotationFixer - support more annotations (keradus) * minor #2256 EmptyReturnFixer - it's now risky fixer due to null vs void (keradus) * minor #2281 Add issue template (SpacePossum) * minor #2307 Update .editorconfig (SpacePossum) * minor #2310 CI: update AppVeyor to use newest PHP, silence the composer (keradus) * minor #2315 Token - Deprecate getLine() (SpacePossum) * minor #2320 Clear up status code on 1.x (SpacePossum) Changelog for v1.12.4 --------------------- * bug #2235 OrderedImportsFixer - PHP 7 group imports support (SpacePossum) * minor #2276 Tokens cleanup (keradus) * minor #2277 Remove trailing spaces (keradus) * minor #2294 Improve Travis configuration (keradus) * minor #2297 Use phpdbg instead of xdebug (keradus) * minor #2299 Travis: proper xdebug disabling (keradus) * minor #2301 Travis: update platform adjusting (keradus) Changelog for v1.12.3 --------------------- * bug #2155 ClassDefinitionFixer - overhaul (SpacePossum) * bug #2187 MultipleUseFixer - Fix handling comments (SpacePossum) * bug #2209 LinefeedFixer - Fix in a safe way (SpacePossum) * bug #2228 NoEmptyLinesAfterPhpdocs, SingleBlankLineBeforeNamespace - Fix priority (SpacePossum) * bug #2230 FunctionDeclarationFixer - Fix T_USE case (SpacePossum) * bug #2232 Add a test for style of varaible decalration : var (daiglej) * bug #2246 Fix itest requirements (keradus) * minor #2238 .gitattributes - specified line endings (keradus) * minor #2239 IntegrationCase - no longer internal (keradus) Changelog for v1.12.2 --------------------- * bug #2191 PhpdocToCommentFixer - fix false positive for docblock of variable (keradus) * bug #2193 UnneededControlParenthesesFixer - Fix more return cases. (SpacePossum) * bug #2198 FileCacheManager - fix exception message and undefined property (j0k3r) * minor #2170 Add dollar sign prefix for consistency (bcremer) * minor #2190 .travis.yml - improve Travis speed for tags (keradus) * minor #2196 PhpdocTypesFixer - support iterable type (GrahamCampbell) * minor #2197 Update cookbook and readme (g105b, SpacePossum) * minor #2203 README.rst - change formatting (ro0NL) * minor #2204 FixCommand - clean unused var (keradus) * minor #2205 Add integration test for iterable type (keradus) Changelog for v1.12.1 --------------------- * bug #2144 Remove temporary files not deleted by destructor on failure (adawolfa) * bug #2150 SelfUpdateCommand: resolve symlink (julienfalque) * bug #2162 Fix issue where an exception is thrown if the cache file exists but is empty. (ikari7789) * bug #2164 OperatorsSpacesFixer - Do not unalign double arrow and equals operators (SpacePossum) * bug #2167 Rewrite file removal (keradus) * minor #2152 Code cleanup (keradus) * minor #2154 ShutdownFileRemoval - Fixed file header (GrahamCampbell) Changelog for v1.12.0 --------------------- * feature #1493 Added MethodArgumentDefaultValueFixer (lmanzke) * feature #1495 BracesFixer - added support for declare (EspadaV8) * feature #1518 Added ClassDefinitionFixer (SpacePossum) * feature #1543 [PSR-2] Switch case space fixer (Soullivaneuh) * feature #1577 Added SpacesAfterSemicolonFixer (SpacePossum) * feature #1580 Added HeredocToNowdocFixer (gharlan) * feature #1581 UnneededControlParenthesesFixer - add "break" and "continue" support (gharlan) * feature #1610 HashToSlashCommentFixer - Add (SpacePossum) * feature #1613 ScalarCastFixer - LowerCaseCastFixer - Add (SpacePossum) * feature #1659 NativeFunctionCasingFixer - Add (SpacePossum) * feature #1661 SwitchCaseSemicolonToColonFixer - Add (SpacePossum) * feature #1662 Added CombineConsecutiveUnsetsFixer (SpacePossum) * feature #1671 Added NoEmptyStatementFixer (SpacePossum) * feature #1705 Added NoUselessReturnFixer (SpacePossum, keradus) * feature #1735 Added NoTrailingWhitespaceInCommentFixer (keradus) * feature #1750 Add PhpdocSingleLineVarSpacingFixer (SpacePossum) * feature #1765 Added NoEmptyPhpdocFixer (SpacePossum) * feature #1773 Add NoUselessElseFixer (gharlan, SpacePossum) * feature #1786 Added NoEmptyCommentFixer (SpacePossum) * feature #1792 Add PhpUnitDedicateAssertFixer. (SpacePossum) * feature #1894 BracesFixer - correctly fix indents of anonymous functions/classes (gharlan) * feature #1985 Added ClassKeywordRemoveFixer (Soullivaneuh) * feature #2020 Added PhpdocAnnotationWithoutDotFixer (keradus) * feature #2067 Added DeclareEqualNormalizeFixer (keradus) * feature #2078 Added SilencedDeprecationErrorFixer (HeahDude) * feature #2082 Added MbStrFunctionsFixer (Slamdunk) * bug #1657 SwitchCaseSpaceFixer - Fix spacing between 'case' and semicolon (SpacePossum) * bug #1684 SpacesAfterSemicolonFixer - fix loops handling (SpacePossum, keradus) * bug #1700 Fixer - resolve import conflict (keradus) * bug #1836 NoUselessReturnFixer - Do not remove return if last statement in short if statement (SpacePossum) * bug #1879 HeredocToNowdocFixer - Handle space in heredoc token (SpacePossum) * bug #1896 FixCommand - Fix escaping of diff output (SpacePossum) * bug #2034 IncludeFixer - fix support for close tag (SpacePossum) * bug #2040 PhpdocAnnotationWithoutDotFixer - fix crash on odd character (keradus) * bug #2041 DefaultFinder should implement FinderInterface (keradus) * bug #2050 PhpdocAnnotationWithoutDotFixer - handle ellipsis (keradus) * bug #2051 NativeFunctionCasingFixer - call to constructor with default NS of class with name matching native function name fix (SpacePossum) * minor #1538 Added possibility to lint tests (gharlan) * minor #1569 Add sample to get a specific version of the fixer (Soullivaneuh) * minor #1571 Enhance integration tests (keradus) * minor #1578 Code grooming (keradus) * minor #1583 Travis - update matrix (keradus) * minor #1585 Code grooming - Improve utests code coverage (SpacePossum) * minor #1586 Add configuration exception classes and exit codes (SpacePossum) * minor #1594 Fix invalid PHP code samples in utests (SpacePossum) * minor #1597 MethodArgumentDefaultValueFixer - refactoring and fix closures with "use" clause (gharlan) * minor #1600 Added more integration tests (SpacePossum, keradus) * minor #1605 integration tests - swap EXPECT and INPUT (optional INPUT) (gharlan) * minor #1608 Travis - change matrix order for faster results (gharlan) * minor #1609 CONTRIBUTING.md - Don't rebase always on master (SpacePossum) * minor #1616 IncludeFixer - fix and test more cases (SpacePossum) * minor #1622 AbstractIntegratationTest - fix linting test cases (gharlan) * minor #1624 fix invalid code in test cases (gharlan) * minor #1625 Travis - switch to trusty (keradus) * minor #1627 FixCommand - fix output (keradus) * minor #1630 Pass along the exception code. (SpacePossum) * minor #1632 Php Inspections (EA Extended): SCA for 1.12 (kalessil) * minor #1633 Fix CS for project itself (keradus) * minor #1634 Backport some minor changes from 2.x line (keradus) * minor #1637 update PHP Coveralls (keradus) * minor #1639 Revert "Travis - set dist to trusty" (keradus) * minor #1641 AppVeyor/Travis - use GITHUB_OAUTH_TOKEN (keradus) * minor #1642 AppVeyor - install dev deps as well (keradus) * minor #1647 Deprecate non-default Configs and Finders (keradus) * minor #1654 Split output to stderr and stdout (SpacePossum) * minor #1660 update phpunit version (gharlan) * minor #1663 DuplicateSemicolonFixer - Remove duplicate semicolons even if there are comments between those (SpacePossum) * minor #1664 IncludeFixer - Add missing test case (SpacePossum) * minor #1668 Code grooming (keradus) * minor #1669 NativeFunctionCasingFixer - move to Symfony level (keradus) * minor #1670 Backport Finder and Config classes from 2.x line (keradus) * minor #1682 ElseifFixer - handle comments (SpacePossum) * minor #1689 AbstractIntegrationTest - no need for single-char group and docs grooming (keradus) * minor #1690 Integration tests - allow to not check priority, introduce IntegrationCase (keradus) * minor #1701 Fixer - Renamed import alias (GrahamCampbell) * minor #1708 Update composer.json requirements (keradus) * minor #1734 Travis: Turn on linting (keradus) * minor #1736 Integration tests - don't check priority for tests using short_tag fixer (keradus) * minor #1739 NoTrailingWhitespaceInCommentFixer - move to PSR2 level (keradus) * minor #1763 Deprecate ConfigInterface::getDir, ConfigInterface::setDir, Finder::setDir (keradus) * minor #1777 NoTrailingWhitespaceInCommentFixer - fix parent class (keradus) * minor #1816 PhpUnitDedicateAssertFixer - configuration is not required anymore (keradus) * minor #1849 DocBlock - The category tag should be together with package (GrahamCampbell) * minor #1870 Update README.rst (glensc) * minor #1880 FixCommand - fix stdErr detection (SpacePossum) * minor #1881 NoEmptyStatementFixer - handle anonymous classes correctly (gharlan) * minor #1906 .php_cs - use no_useless_else rule (keradus) * minor #1915 NoEmptyComment - move to Symfony level (SpacePossum) * minor #1917 BracesFixer - fixed comment handling (gharlan) * minor #1919 EmptyReturnFixer - move fixer outside of Symfony level (keradus) * minor #2036 OrderedUseFixer - adjust tests (keradus) * minor #2056 Travis - run nightly PHP (keradus) * minor #2061 UnusedUseFixer and LineAfterNamespace - add new integration test (keradus) * minor #2097 Add lambda tests for 7.0 and 7.1 (SpacePossum) * minor #2111 .travis.yml - rename PHP 7.1 env (keradus) * minor #2112 Fix 1.12 line (keradus) * minor #2118 SilencedDeprecationErrorFixer - adjust level (keradus) * minor #2132 composer.json - rename package name (keradus) * minor #2133 Apply ordered_class_elements rule (keradus) * minor #2138 composer.json - disallow to run on PHP 7.2+ (keradus) Changelog for v1.11.8 --------------------- * bug #2143 ReadmeCommand - fix running command on phar file (keradus) * minor #2129 Add .gitattributes to remove unneeded files (Slamdunk) * minor #2141 Move phar building to PHP 5.6 job as newest box.phar is no longer working on 5.3 (keradus) Changelog for v1.11.7 --------------------- * bug #2108 ShortArraySyntaxFixer, TernarySpacesFixer, UnalignEqualsFixer - fix priority bug (SpacePossum) * bug #2092 ConcatWithoutSpacesFixer, OperatorsSpacesFixer - fix too many spaces, fix incorrect fixing of lines with comments (SpacePossum) Changelog for v1.11.6 --------------------- * bug #2086 Braces - fix bug with comment in method prototype (keradus) * bug #2077 SingleLineAfterImportsFixer - Do not remove lines between use cases (SpacePossum) * bug #2079 TernarySpacesFixer - Remove multiple spaces (SpacePossum) * bug #2087 Fixer - handle PHP7 Errors as well (keradus) * bug #2072 LowercaseKeywordsFixer - handle CT_CLASS_CONSTANT (tgabi333) * bug #2066 LineAfterNamespaceFixer - Handle close tag (SpacePossum) * bug #2057 LineAfterNamespaceFixer - adding too much extra lines where namespace is last statement (keradus) * bug #2059 OperatorsSpacesFixer - handle declare statement (keradus) * bug #2060 UnusedUseFixer - fix handling whitespaces around removed import (keradus) * minor #2071 ShortEchoTagFixer - allow to run tests on PHP 5.3 (keradus) Changelog for v1.11.5 --------------------- * bug #2012 Properly build phar file for lowest supported PHP version (keradus) * bug #2037 BracesFixer - add support for anonymous classes (keradus) * bug #1989 Add support for PHP 7 namespaces (SpacePossum) * bug #2019 Fixing newlines added after curly brace string index access (jaydiablo) * bug #1840 [Bug] BracesFixer - Do add a line before close tag (SpacePossum) * bug #1994 EchoToPrintFixer - Fix T_OPEN_TAG_WITH_ECHO on hhvm (keradus) * bug #1970 Tokens - handle semi-reserved PHP 7 keywords (keradus) * minor #2017 PHP7 integration tests (keradus) * minor #1465 Bump supported HHVM version, improve ShortEchoTagFixer on HHVM (keradus) * minor #1995 Rely on own phpunit, not one from CI service (keradus) Changelog for v1.11.4 --------------------- * bug #1956 SelfUpdateCommand - don't update to non-stable version (keradus) * bug #1963 Fix not wanted unneeded_control_parentheses fixer for clone (Soullivaneuh) * bug #1960 Fix invalid test cases (keradus) * bug #1939 BracesFixer - fix handling comment around control token (keradus) * minor #1927 NewWithBracesFixer - remove invalid testcase (keradus) Changelog for v1.11.3 --------------------- * bug #1868 NewWithBracesFixer - fix handling more neighbor tokens (keradus) * bug #1893 BracesFixer - handle comments inside lambda function prototype (keradus) * bug #1806 SelfAccessorFixer - skip anonymous classes (gharlan) * bug #1813 BlanklineAfterOpenTagFixer, NoBlankLinesBeforeNamespaceFixer - fix priority (SpacePossum) * minor #1807 Tokens - simplify isLambda() (gharlan) Changelog for v1.11.2 --------------------- * bug #1776 EofEndingFixer - new line on end line comment is allowed (Slamdunk) * bug #1775 FileCacheManager - ignore corrupted serialized data (keradus) * bug #1769 FunctionDeclarationFixer - fix more cases (keradus) * bug #1747 Fixer - Fix ordering of fixer when both level and custom fixers are used (SpacePossum) * bug #1744 Fixer - fix rare situation when file was visited twice (keradus) * bug #1710 LowercaseConstantFixer - Fix comment cases. (SpacePossum) * bug #1711 FunctioncallSpaceFixer - do not touch function declarations. (SpacePossum) * minor #1798 LintManager - meaningful tempnam (Slamdunk) * minor #1759 UniqueFileIterator - performance improvement (GrahamCampbell) * minor #1745 appveyor - fix build (keradus) Changelog for v1.11.1 --------------------- * bug #1680 NewWithBracesFixer - End tags (SpacePossum) * bug #1685 EmptyReturnFixer - Make independent of LowercaseConstantsFixer (SpacePossum) * bug #1640 IntegrationTest - fix directory separator (keradus) * bug #1595 ShortTagFixer - fix priority (keradus) * bug #1576 SpacesBeforeSemicolonFixer - do not remove space before semicolon if that space is after a semicolon (SpacePossum) * bug #1570 UnneededControlParenthesesFixer - fix test samples (keradus) * minor #1653 Update license year (gharlan) Changelog for v1.11 ------------------- * feature #1550 Added UnneededControlParenthesesFixer (Soullivaneuh, keradus) * feature #1532 Added ShortBoolCastFixer (SpacePossum) * feature #1523 Added EchoToPrintFixer and PrintToEchoFixer (Soullivaneuh) * feature #1552 Warn when running with xdebug extension (SpacePossum) * feature #1484 Added ArrayElementNoSpaceBeforeCommaFixer and ArrayElementWhiteSpaceAfterCommaFixer (amarczuk) * feature #1449 PhpUnitConstructFixer - Fix more use cases (SpacePossum) * feature #1382 Added PhpdocTypesFixer (GrahamCampbell) * feature #1384 Add intergration tests (SpacePossum) * feature #1349 Added FunctionTypehintSpaceFixer (keradus) * minor #1562 Fix invalid PHP code samples in utests (SpacePossum) * minor #1560 Fixed project name in xdebug warning (gharlan) * minor #1545 Fix invalid PHP code samples in utests (SpacePossum) * minor #1554 Alphabetically sort entries in .gitignore (GrahamCampbell) * minor #1527 Refactor the way types work on annotations (GrahamCampbell) * minor #1546 Update coding guide in cookbook (keradus) * minor #1526 Support more annotations when fixing types in phpdoc (GrahamCampbell) * minor #1535 clean ups (SpacePossum) * minor #1510 Added Symfony 3.0 support (Ener-Getick) * minor #1520 Code grooming (keradus) * minor #1515 Support property, property-read and property-write tags (GrahamCampbell) * minor #1488 Added more inline phpdoc tests (GrahamCampbell) * minor #1496 Add docblock to AbstractFixerTestBase::makeTest (lmanzke) * minor #1467 PhpdocShortDescriptionFixer - add support for Japanese sentence-ending characters (fritz-c) * minor #1453 remove calling array_keys in foreach loops (keradus) * minor #1448 Code grooming (keradus) * minor #1437 Added import fixers integration test (GrahamCampbell) * minor #1433 phpunit.xml.dist - disable gc (keradus) * minor #1427 Change arounded to surrounded in README.rst (36degrees) * minor #1420 AlignDoubleArrowFixer, AlignEqualsFixer - add integration tests (keradus) * minor #1423 appveyor.yml - do not cache C:\tools, its internal forAppVeyor (keradus) * minor #1400 appveyor.yml - add file (keradus) * minor #1396 AbstractPhpdocTypesFixer - instance method should be called on instance (keradus) * minor #1395 code grooming (keradus) * minor #1393 boost .travis.yml file (keradus) * minor #1372 Don't allow PHP 7 to fail (GrahamCampbell) * minor #1332 PhpUnitConstructFixer - fix more functions (keradus) * minor #1339 CONTRIBUTING.md - add link to PSR-5 (keradus) * minor #1346 Core grooming (SpacePossum) * minor #1328 Tokens: added typehint for Iterator elements (gharlan) Changelog for v1.10.3 --------------------- * bug #1559 WhitespacyLinesFixer - fix bug cases (SpacePossum, keradus) * bug #1541 Psr0Fixer - Ignore filenames that are a reserved keyword or predefined constant (SpacePossum) * bug #1537 Psr0Fixer - ignore file without name or with name started by digit (keradus) * bug #1516 FixCommand - fix wrong message for dry-run (SpacePossum) * bug #1486 ExtraEmptyLinesFixer - Remove extra lines after comment lines too (SpacePossum) * bug #1503 Psr0Fixer - fix case with comments lying around (GrahamCampbell) * bug #1474 PhpdocToCommentFixer - fix not properly fixing for block right after namespace (GrahamCampbell) * bug #1478 BracesFixer - do not remove empty lines after class opening (keradus) * bug #1468 Add missing ConfigInterface::getHideProgress() (Eugene Leonovich, rybakit) * bug #1466 Fix bad indent on align double arrow fixer (Soullivaneuh, keradus) * bug #1479 Tokens - fix detection of short array (keradus) Changelog for v1.10.2 --------------------- * bug #1461 PhpUnitConstructFixer - fix case when first argument is an expression (keradus) * bug #1460 AlignDoubleArrowFixer - fix handling of nested arrays (Soullivaneuh, keradus) Changelog for v1.10.1 --------------------- * bug #1424 Fixed the import fixer priorities (GrahamCampbell) * bug #1444 OrderedUseFixer - fix next case (keradus) * bug #1441 BracesFixer - fix next case (keradus) * bug #1422 AlignDoubleArrowFixer - fix handling of nested array (SpacePossum) * bug #1425 PhpdocInlineTagFixerTest - fix case when met inalid PHPDoc (keradus) * bug #1419 AlignDoubleArrowFixer, AlignEqualsFixer - fix priorities (keradus) * bug #1415 BlanklineAfterOpenTagFixer - Do not add a line break if there is one already. (SpacePossum) * bug #1410 PhpdocIndentFixer - Fix for open tag (SpacePossum) * bug #1401 PhpdocVarWithoutNameFixer - Fixed the var without name fixer for inline docs (keradus, GrahamCampbell) * bug #1369 Fix not well-formed XML output (junichi11) * bug #1356 Psr0Fixer - disallow run on StdinFileInfo (keradus) Changelog for v1.10 ------------------- * feature #1306 Added LogicalNotOperatorsWithSuccessorSpaceFixer (phansys) * feature #1286 Added PhpUnitConstructFixer (keradus) * feature #1316 Added PhpdocInlineTagFixer (SpacePossum, keradus) * feature #1303 Added LogicalNotOperatorsWithSpacesFixer (phansys) * feature #1279 Added PhpUnitStrictFixer (keradus) * feature #1267 SingleQuoteFixer fix more use cases (SpacePossum) * minor #1319 PhpUnitConstructFixer - fix performance and add to local .php_cs (keradus) * minor #1280 Fix non-utf characters in docs (keradus) * minor #1274 Cookbook - No change auto-test note (Soullivaneuh) Changelog for v1.9.3 -------------------- * bug #1327 DocBlock\Tag - keep the case of tags (GrahamCampbell) Changelog for v1.9.2 -------------------- * bug #1313 AlignDoubleArrowFixer - fix aligning after UTF8 chars (keradus) * bug #1296 PhpdocScalarFixer - fix property annotation too (GrahamCampbell) * bug #1299 WhitespacyLinesFixer - spaces on next valid line must not be fixed (Slamdunk) Changelog for v1.9.1 -------------------- * bug #1288 TrimArraySpacesFixer - fix moving first comment (keradus) * bug #1287 PhpdocParamsFixer - now works on any indentation level (keradus) * bug #1278 Travis - fix PHP7 build (keradus) * bug #1277 WhitespacyLinesFixer - stop changing non-whitespacy tokens (SpacePossum, SamBurns-awin, keradus) * bug #1224 TrailingSpacesFixer - stop changing non-whitespacy tokens (SpacePossum, SamBurns-awin, keradus) * bug #1266 FunctionCallSpaceFixer - better detection of function call (funivan) * bug #1255 make sure some phpdoc fixers are run in right order (SpacePossum) Changelog for v1.9 ------------------ * feature #1097 Added ShortEchoTagFixer (vinkla) * minor #1238 Fixed error handler to respect current error_reporting (JanJakes) * minor #1234 Add class to exception message, use sprintf for exceptions (SpacePossum) * minor #1210 set custom error handler for application run (keradus) * minor #1214 Tokens::isMonolithicPhp - enhance performance (keradus) * minor #1207 Update code documentation (keradus) * minor #1202 Update IDE tool urls (keradus) * minor #1195 PreIncrementFixer - move to Symfony level (gharlan) Changelog for v1.8.1 -------------------- * bug #1193 EofEndingFixer - do not add an empty line at EOF if the PHP tags have been closed (SpacePossum) * bug #1209 PhpdocParamsFixer - fix corrupting following custom annotation (keradus) * bug #1205 BracesFixer - fix missing indentation fixes for class level (keradus) * bug #1204 Tag - fix treating complex tag as simple PhpDoc tag (keradus) * bug #1198 Tokens - fixed unary/binary operator check for type-hinted reference arguments (gharlan) * bug #1201 Php4ConstructorFixer - fix invalid handling of subnamespaces (gharlan) * minor #1221 Add more tests (SpacePossum) * minor #1216 Tokens - Add unit test for array detection (SpacePossum) Changelog for v1.8 ------------------ * feature #1168 Added UnalignEqualsFixer (keradus) * feature #1167 Added UnalignDoubleArrowFixer (keradus) * bug #1169 ToolInfo - Fix way to find script dir (sp-ian-monge) * minor #1181 composer.json - Update description (SpacePossum) * minor #1180 create Tokens::overrideAt method (keradus) Changelog for v1.7.1 -------------------- * bug #1165 BracesFixer - fix bug when comment is a first statement in control structure without braces (keradus) Changelog for v1.7 ------------------ * feature #1113 Added PreIncrementFixer (gharlan) * feature #1144 Added PhpdocNoAccessFixer (GrahamCampbell) * feature #1116 Added SelfAccessorFixer (gharlan) * feature #1064 OperatorsSpacesFixer enhancements (gharlan) * bug #1151 Prevent token collection corruption by fixers (stof, keradus) * bug #1152 LintManager - fix handling of temporary file (keradus) * bug #1139 NamespaceNoLeadingWhitespaceFixer - remove need for ctype extension (keradus) * bug #1117 Tokens - fix iterator used with foreach by reference (keradus) * minor #1148 code grooming (keradus) * minor #1142 We are actually PSR-4, not PSR-0 (GrahamCampbell) * minor #1131 Phpdocs and typos (SpacePossum) * minor #1069 state min HHVM version (keradus) * minor #1129 [DX] Help developers choose the right branch (SpacePossum) * minor #1138 PhpClosingTagFixer - simplify flow, no need for loop (keradus) * minor #1123 Reference mismatches fixed, SCA (kalessil) * minor #1109 SingleQuoteFixer - made fixer more accurate (gharlan) * minor #1110 code grooming (kalessil) Changelog for v1.6.2 -------------------- * bug #1149 UnusedUseFixer - must be run before LineAfterNamespaceFixer, fix token collection corruption (keradus) * minor #1145 AbstractLinesBeforeNamespaceFixer - fix docs for fixLinesBeforeNamespace (GrahamCampbell) Changelog for v1.6.1 -------------------- * bug #1108 UnusedUseFixer - fix false positive when name is used as part of another namespace (gharlan) * bug #1114 Fixed PhpdocParamsFixer with malformed doc block (gharlan) * minor #1135 PhpdocTrimFixer - fix doc typo (localheinz) * minor #1093 Travis - test lowest dependencies (boekkooi) Changelog for v1.6 ------------------ * feature #1089 Added NewlineAfterOpenTagFixer and BlanklineAfterOpenTagFixer (ceeram, keradus) * feature #1090 Added TrimArraySpacesFixer (jaredh159, keradus) * feature #1058 Added SingleQuoteFixer (gharlan) * feature #1059 Added LongArraySyntaxFixer (gharlan) * feature #1037 Added PhpdocScalarFixer (GrahamCampbell, keradus) * feature #1028 Add ListCommasFixer (keradus) * bug #1047 Utils::camelCaseToUnderscore - fix regexp (odin-delrio) * minor #1073 ShortTagFixer enhancement (gharlan) * minor #1079 Use LongArraySyntaxFixer for this repo (gharlan) * minor #1070 Tokens::isMonolithicPhp - remove unused T_CLOSE_TAG search (keradus) * minor #1049 OrderedUseFixer - grooming (keradus) Changelog for v1.5.2 -------------------- * bug #1025 Fixer - ignore symlinks (kix) * bug #1071 Psr0Fixer - fix bug for fixing file with long extension like .class.php (keradus) * bug #1080 ShortTagFixer - fix false positive (gharlan) * bug #1066 Php4ConstructorFixer - fix causing infinite recursion (mbeccati) * bug #1056 VisibilityFixer - fix T_VAR with multiple props (localheinz, keradus) * bug #1065 Php4ConstructorFixer - fix detection of a PHP4 parent constructor variant (mbeccati) * bug #1060 Tokens::isShortArray: tests and bugfixes (gharlan) * bug #1057 unused_use: fix false positive when name is only used as variable name (gharlan) Changelog for v1.5.1 -------------------- * bug #1054 VisibilityFixer - fix var with array value assigned (localheinz, keradus) * bug #1048 MultilineArrayTrailingCommaFixer, SingleArrayNoTrailingCommaFixer - using heredoc inside array not cousing to treat it as multiline array (keradus) * bug #1043 PhpdocToCommentFixer - also check other control structures, besides foreach (ceeram) * bug #1045 OrderedUseFixer - fix namespace order for trailing digits (rusitschka) * bug #1035 PhpdocToCommentFixer - Add static as valid keyword for structural element (ceeram) * bug #1020 BracesFixer - fix missing braces for nested if elseif else (malengrin) * minor #1036 Added php7 to travis build (fonsecas72) * minor #1026 Fix typo in ShortArraySyntaxFixer (tommygnr) * minor #1024 code grooming (keradus) Changelog for v1.5 ------------------ * feature #887 Added More Phpdoc Fixers (GrahamCampbell, keradus) * feature #1002 Add HeaderCommentFixer (ajgarlag) * feature #974 Add EregToPregFixer (mbeccati) * feature #970 Added Php4ConstructorFixer (mbeccati) * feature #997 Add PhpdocToCommentFixer (ceeram, keradus) * feature #932 Add NoBlankLinesAfterClassOpeningFixer (ceeram) * feature #879 Add SingleBlankLineBeforeNamespaceFixer and NoBlankLinesBeforeNamespaceFixer (GrahamCampbell) * feature #860 Add single_line_after_imports fixer (ceeram) * minor #1014 Fixed a few file headers (GrahamCampbell) * minor #1011 Fix HHVM as it works different than PHP (keradus) * minor #1010 Fix invalid UTF-8 char in docs (ajgarlag) * minor #1003 Fix header comment in php files (ajgarlag) * minor #1005 Add Utils::calculateBitmask method (keradus) * minor #973 Add Tokens::findSequence (mbeccati) * minor #991 Longer explanation of how to use blacklist (bmitch, networkscraper) * minor #972 Add case sensitive option to the tokenizer (mbeccati) * minor #986 Add benchmark script (dericofilho) * minor #985 Fix typo in COOKBOOK-FIXERS.md (mattleff) * minor #978 Token - fix docs (keradus) * minor #957 Fix Fixers methods order (GrahamCampbell) * minor #944 Enable caching of composer downloads on Travis (stof) * minor #941 EncodingFixer - enhance tests (keradus) * minor #938 Psr0Fixer - remove unneded assignment (keradus) * minor #936 FixerTest - test description consistency (keradus) * minor #933 NoEmptyLinesAfterPhpdocsFixer - remove unneeded code, clarify description (ceeram) * minor #934 StdinFileInfo::getFilename - Replace phpdoc with normal comment and add back empty line before return (ceeram) * minor #927 Exclude the resources folder from coverage reports (GrahamCampbell) * minor #926 Update Token::isGivenKind phpdoc (GrahamCampbell) * minor #925 Improved AbstractFixerTestBase (GrahamCampbell) * minor #922 AbstractFixerTestBase::makeTest - test if input is different than expected (keradus) * minor #904 Refactoring Utils (GrahamCampbell) * minor #901 Improved Readme Formatting (GrahamCampbell) * minor #898 Tokens::getImportUseIndexes - simplify function (keradus) * minor #897 phpunit.xml.dist - split testsuite (keradus) Changelog for v1.4.2 -------------------- * bug #994 Fix detecting of short arrays (keradus) * bug #995 DuplicateSemicolonFixer - ignore duplicated semicolons inside T_FOR (keradus) Changelog for v1.4.1 -------------------- * bug #990 MultilineArrayTrailingCommaFixer - fix case with short array on return (keradus) * bug #975 NoEmptyLinesAfterPhpdocsFixer - fix only when documentation documents sth (keradus) * bug #976 PhpdocIndentFixer - fix error when there is a comment between docblock and next meaningful token (keradus, ceeram) Changelog for v1.4 ------------------ * feature #841 PhpdocParamsFixer: added aligning var/type annotations (GrahamCampbell) * bug #965 Fix detection of lambda function that returns a reference (keradus) * bug #962 PhpdocIndentFixer - fix bug when documentation is on the end of braces block (keradus) * bug #961 Fixer - fix handling of empty file (keradus) * bug #960 IncludeFixer - fix bug when include is part of condition statement (keradus) * bug #954 AlignDoubleArrowFixer - fix new buggy case (keradus) * bug #955 ParenthesisFixer - fix case with list call with trailing comma (keradus) * bug #950 Tokens::isLambda - fix detection near comments (keradus) * bug #951 Tokens::getImportUseIndexes - fix detection near comments (keradus) * bug #949 Tokens::isShortArray - fix detection near comments (keradus) * bug #948 NewWithBracesFixer - fix case with multidimensional array (keradus) * bug #945 Skip files containing __halt_compiler() on PHP 5.3 (stof) * bug #946 BracesFixer - fix typo in exception name (keradus) * bug #940 Tokens::setCode - apply missing transformation (keradus) * bug #908 BracesFixer - fix invalide inserting brace for control structure without brace and lambda inside of it (keradus) * bug #903 NoEmptyLinesAfterPhpdocsFixer - fix bug with Windows style lines (GrahamCampbell) * bug #895 [PSR-2] Preserve blank line after control structure opening brace (marcaube) * bug #892 Fixed the double arrow multiline whitespace fixer (GrahamCampbell) * bug #874 BracesFixer - fix bug of removing empty lines after class' opening { (ceeram) * bug #868 BracesFixer - fix missing braces when statement is not followed by ; (keradus) * bug #861 Updated PhpdocParamsFixer not to change line endings (keradus, GrahamCampbell) * bug #837 FixCommand - stop corrupting xml/json format (keradus) * bug #846 Made phpdoc_params run after phpdoc_indent (GrahamCampbell) * bug #834 Correctly handle tab indentation (ceeram) * bug #822 PhpdocIndentFixer - Ignore inline docblocks (ceeram) * bug #813 MultilineArrayTrailingCommaFixer - do not move array end to new line (keradus) * bug #817 LowercaseConstantsFixer - ignore class' constants TRUE/FALSE/NULL (keradus) * bug #821 JoinFunctionFixer - stop changing declaration method name (ceeram) * minor #963 State the minimum version of PHPUnit in CONTRIBUTING.md (SpacePossum) * minor #943 Improve the cookbook to use relative links (stof) * minor #921 Add changelog file (keradus) * minor #909 BracesFixerTest - no \n line in \r\n test (keradus) * minor #864 Added NoEmptyLinesAfterPhpdocsFixer (GrahamCampbell) * minor #871 Added missing author (GrahamCampbell) * minor #852 Fixed the coveralls version constraint (GrahamCampbell) * minor #863 Tweaked testRetainsNewLineCharacters (GrahamCampbell) * minor #849 Removed old alias (GrahamCampbell) * minor #843 integer should be int (GrahamCampbell) * minor #830 Remove whitespace before opening tag (ceeram) * minor #835 code grooming (keradus) * minor #828 PhpdocIndentFixerTest - code grooming (keradus) * minor #827 UnusedUseFixer - code grooming (keradus) * minor #825 improve code coverage (keradus) * minor #810 improve code coverage (keradus) * minor #811 ShortArraySyntaxFixer - remove not needed if statement (keradus) Changelog for v1.3 ------------------ * feature #790 Add docblock indent fixer (ceeram) * feature #771 Add JoinFunctionFixer (keradus) * bug #798 Add DynamicVarBrace Transformer for properly handling ${$foo} syntax (keradus) * bug #796 LowercaseConstantsFixer - rewrite to handle new test cases (keradus) * bug #789 T_CASE is not succeeded by parentheses (dericofilho) * minor #814 Minor improvements to the phpdoc_params fixer (GrahamCampbell) * minor #815 Minor fixes (GrahamCampbell) * minor #782 Cookbook on how to make a new fixer (dericofilho) * minor #806 Fix Tokens::detectBlockType call (keradus) * minor #758 travis - disable sudo (keradus) * minor #808 Tokens - remove commented code (keradus) * minor #802 Address Sensiolabs Insight's warning of code cloning. (dericofilho) * minor #803 README.rst - fix \` into \`\` (keradus) Changelog for v1.2 ------------------ * feature #706 Remove lead slash (dericofilho) * feature #740 Add EmptyReturnFixer (GrahamCampbell) * bug #775 PhpClosingTagFixer - fix case with T_OPEN_TAG_WITH_ECHO (keradus) * bug #756 Fix broken cases for AlignDoubleArrowFixer (dericofilho) * bug #763 MethodArgumentSpaceFixer - fix receiving data in list context with omitted values (keradus) * bug #759 Fix Tokens::isArrayMultiLine (stof, keradus) * bug #754 LowercaseKeywordsFixer - __HALT_COMPILER must not be lowercased (keradus) * bug #753 Fix for double arrow misalignment in deeply nested arrays. (dericofilho) * bug #752 OrderedUseFixer should be case-insensitive (rusitschka) * minor #779 Fixed a docblock type (GrahamCampbell) * minor #765 Typehinting in FileCacheManager, remove unused variable in Tokens (keradus) * minor #764 SelfUpdateCommand - get local version only if remote version was successfully obtained (keradus) * minor #761 aling => (keradus) * minor #757 Some minor code simplify and extra test (keradus) * minor #713 Download php-cs-fixer.phar without sudo (michaelsauter) * minor #742 Various Minor Improvements (GrahamCampbell) Changelog for v1.1 ------------------ * feature #749 remove the --no-progress option (replaced by the standard -v) (fabpot, keradus) * feature #728 AlignDoubleArrowFixer - standardize whitespace after => (keradus) * feature #647 Add DoubleArrowMultilineWhitespacesFixer (dericofilho, keradus) * bug #746 SpacesBeforeSemicolonFixerTest - fix bug with semicolon after comment (keradus) * bug #741 Fix caching when composer is installed in custom path (cmodijk) * bug #725 DuplicateSemicolonFixer - fix clearing whitespace after duplicated semicolon (keradus) * bug #730 Cache busting when fixers list changes (Seldaek) * bug #722 Fix lint for STDIN-files (ossinkine) * bug #715 TrailingSpacesFixer - fix bug with french UTF-8 chars (keradus) * bug #718 Fix package name for composer cache (Seldaek) * bug #711 correct vendor name (keradus) * minor #745 Show progress by default and allow to disable it (keradus) * minor #731 Add a way to disable all default filters and really provide a whitelist (Seldaek) * minor #737 Extract tool info into new class, self-update command works now only for PHAR version (keradus) * minor #739 fix fabbot issues (keradus) * minor #726 update CONTRIBUTING.md for installing dependencies (keradus) * minor #736 Fix fabbot issues (GrahamCampbell) * minor #727 Fixed typos (pborreli) * minor #719 Add update instructions for composer and caching docs (Seldaek) Changelog for v1.0 ------------------ First stable release.