dxw / whippet-theme-template

This repo holds the template for a Whippet-enabled theme.
2 stars 1 forks source link

Bump friendsofphp/php-cs-fixer from 1.11.4 to 2.16.4 #96

Closed dependabot-preview[bot] closed 4 years ago

dependabot-preview[bot] commented 4 years ago

Bumps friendsofphp/php-cs-fixer from 1.11.4 to 2.16.4.

Release notes

Sourced from friendsofphp/php-cs-fixer's releases.

v2.16.4 Yellow Bird

  • bug #3893 Fix handling /** and */ on the same line as the first and/or last annotation (dmvdbrugge)
  • bug #4919 PhpUnitTestAnnotationFixer - fix function starting with "test" and having lowercase letter after (kubawerlos)
  • bug #4929 YodaStyleFixer - handling equals empty array (kubawerlos)
  • bug #4934 YodaStyleFixer - fix for conditions weird are (kubawerlos)
  • bug #4958 OrderedImportsFixer - fix for trailing comma in group (kubawerlos)
  • bug #4959 BlankLineBeforeStatementFixer - handle comment case (SpacePossum)
  • bug #4962 MethodArgumentSpaceFixer - must run after MethodChainingIndentationFixer (kubawerlos)
  • bug #4963 PhpdocToReturnTypeFixer - fix for breaking PHP syntax for type having reserved name (kubawerlos, Slamdunk)
  • bug #4978 ArrayIndentationFixer - must run after MethodArgumentSpaceFixer (kubawerlos)
  • bug #4994 FinalInternalClassFixer - must run before ProtectedToPrivateFixer (kubawerlos)
  • bug #4996 NoEmptyCommentFixer - handle multiline comments (kubawerlos)
  • bug #4999 BlankLineBeforeStatementFixer - better comment handling (SpacePossum)
  • bug #5009 NoEmptyCommentFixer - better handle comments sequence (kubawerlos)
  • bug #5010 SimplifiedNullReturnFixer - must run before VoidReturnFixer (kubawerlos)
  • bug #5011 SingleClassElementPerStatementFixer - must run before ClassAttributesSeparationFixer (kubawerlos)
  • bug #5012 StrictParamFixer - must run before NativeFunctionInvocationFixer (kubawerlos)
  • bug #5014 PhpdocToParamTypeFixer - fix for void as param (kubawerlos)
  • bug #5018 PhpdocScalarFixer - fix for comment with Windows line endings (kubawerlos)
  • bug #5029 SingleLineAfterImportsFixer - fix for line after import already added using CRLF (kubawerlos)
  • minor #4904 Increase PHPStan level to 8 with strict rules (julienfalque)
  • minor #4920 Enhancement: Use DocBlock itself to make it multi-line (localheinz)
  • minor #4930 DX: ensure PhpUnitNamespacedFixer handles all classes (kubawerlos)
  • minor #4931 DX: add test to ensure each target version in PhpUnitTargetVersion has its set in RuleSet (kubawerlos)
  • minor #4932 DX: Travis CI config - fix warnings and infos (kubawerlos)
  • minor #4940 Reject empty path (julienfalque)
  • minor #4944 Fix grammar (julienfalque)
  • minor #4946 Allow "const" option on PHP <7.1 (julienfalque)
  • minor #4948 Added describe command to readme (david, 8ctopus)
  • minor #4949 Fixed build readme on Windows fails if using Git Bash (Mintty) (8ctopus)
  • minor #4954 Config - Trim path (julienfalque)
  • minor #4957 DX: Check trailing spaces in project files only (ktomk)
  • minor #4961 Assert all project source files are monolithic. (SpacePossum)
  • minor #4964 Fix PHPStan baseline (julienfalque)
  • minor #4965 Fix PHPStan baseline (julienfalque)
  • minor #4973 DX: test "isRisky" method in fixer tests, not as auto review (kubawerlos)
  • minor #4974 Minor: Fix typo (ktomk)
  • minor #4975 Revert PHPStan level to 5 (julienfalque)
  • minor #4976 Add instructions for PHPStan (julienfalque)
  • minor #4980 Introduce new issue templates (julienfalque)
  • minor #4981 Prevent error in CTTest::testConstants (for PHP8) (guilliamxavier)
  • minor #4982 Remove PHIVE (kubawerlos)
  • minor #4985 Fix tests with Symfony 5.1 (julienfalque)
  • minor #4987 PhpdocAnnotationWithoutDotFixer - handle unicode characters using mb_* (SpacePossum)
  • minor #5008 Enhancement: Social justification applied (gbyrka-fingo)
  • minor #5023 Fix issue templates (kubawerlos)
  • minor #5024 DX: add missing non-default code samples (kubawerlos)

v2.16.3 Yellow Bird

  • bug #4915 Fix handling property PHPDocs with unsupported type (julienfalque)
Changelog

Sourced from friendsofphp/php-cs-fixer's changelog.

Changelog for v2.16.4

  • bug #3893 Fix handling /** and */ on the same line as the first and/or last annotation (dmvdbrugge)
  • bug #4919 PhpUnitTestAnnotationFixer - fix function starting with "test" and having lowercase letter after (kubawerlos)
  • bug #4929 YodaStyleFixer - handling equals empty array (kubawerlos)
  • bug #4934 YodaStyleFixer - fix for conditions weird are (kubawerlos)
  • bug #4958 OrderedImportsFixer - fix for trailing comma in group (kubawerlos)
  • bug #4959 BlankLineBeforeStatementFixer - handle comment case (SpacePossum)
  • bug #4962 MethodArgumentSpaceFixer - must run after MethodChainingIndentationFixer (kubawerlos)
  • bug #4963 PhpdocToReturnTypeFixer - fix for breaking PHP syntax for type having reserved name (kubawerlos, Slamdunk)
  • bug #4978 ArrayIndentationFixer - must run after MethodArgumentSpaceFixer (kubawerlos)
  • bug #4994 FinalInternalClassFixer - must run before ProtectedToPrivateFixer (kubawerlos)
  • bug #4996 NoEmptyCommentFixer - handle multiline comments (kubawerlos)
  • bug #4999 BlankLineBeforeStatementFixer - better comment handling (SpacePossum)
  • bug #5009 NoEmptyCommentFixer - better handle comments sequence (kubawerlos)
  • bug #5010 SimplifiedNullReturnFixer - must run before VoidReturnFixer (kubawerlos)
  • bug #5011 SingleClassElementPerStatementFixer - must run before ClassAttributesSeparationFixer (kubawerlos)
  • bug #5012 StrictParamFixer - must run before NativeFunctionInvocationFixer (kubawerlos)
  • bug #5014 PhpdocToParamTypeFixer - fix for void as param (kubawerlos)
  • bug #5018 PhpdocScalarFixer - fix for comment with Windows line endings (kubawerlos)
  • bug #5029 SingleLineAfterImportsFixer - fix for line after import already added using CRLF (kubawerlos)
  • minor #4904 Increase PHPStan level to 8 with strict rules (julienfalque)
  • minor #4920 Enhancement: Use DocBlock itself to make it multi-line (localheinz)
  • minor #4930 DX: ensure PhpUnitNamespacedFixer handles all classes (kubawerlos)
  • minor #4931 DX: add test to ensure each target version in PhpUnitTargetVersion has its set in RuleSet (kubawerlos)
  • minor #4932 DX: Travis CI config - fix warnings and infos (kubawerlos)
  • minor #4940 Reject empty path (julienfalque)
  • minor #4944 Fix grammar (julienfalque)
  • minor #4946 Allow "const" option on PHP <7.1 (julienfalque)
  • minor #4948 Added describe command to readme (david, 8ctopus)
  • minor #4949 Fixed build readme on Windows fails if using Git Bash (Mintty) (8ctopus)
  • minor #4954 Config - Trim path (julienfalque)
  • minor #4957 DX: Check trailing spaces in project files only (ktomk)
  • minor #4961 Assert all project source files are monolithic. (SpacePossum)
  • minor #4964 Fix PHPStan baseline (julienfalque)
  • minor #4965 Fix PHPStan baseline (julienfalque)
  • minor #4973 DX: test "isRisky" method in fixer tests, not as auto review (kubawerlos)
  • minor #4974 Minor: Fix typo (ktomk)
  • minor #4975 Revert PHPStan level to 5 (julienfalque)
  • minor #4976 Add instructions for PHPStan (julienfalque)
  • minor #4980 Introduce new issue templates (julienfalque)
  • minor #4981 Prevent error in CTTest::testConstants (for PHP8) (guilliamxavier)
  • minor #4982 Remove PHIVE (kubawerlos)
  • minor #4985 Fix tests with Symfony 5.1 (julienfalque)
  • minor #4987 PhpdocAnnotationWithoutDotFixer - handle unicode characters using mb_* (SpacePossum)
  • minor #5008 Enhancement: Social justification applied (gbyrka-fingo)
  • minor #5023 Fix issue templates (kubawerlos)
  • minor #5024 DX: add missing non-default code samples (kubawerlos)
Upgrade guide

Sourced from friendsofphp/php-cs-fixer's upgrade guide.

UPGRADE GUIDE FROM 1.x to 2.0

This is guide for upgrade from version 1.x to 2.0 for using the CLI tool.

Rules and sets

To configure which fixers should be used you must now set rules and sets instead of fixers and level. This affects both configuration file and CLI arguments.

Default ruleset was changed from Symfony standard to more generic PSR2. You can still use Symfony standard, which in fact extends PSR2.

The term of risky fixers was introduced. Risky fixer is a fixer that may change the meaning of code (like StrictComparisonFixer fixer, which will change == into ===). No rules that are followed by risky fixers are run by default. You need to explicitly permit risky fixers to run them.

Default configuration changes

By default, PSR2 rules are used instead of Symfony rules. Files that will be fixed are php/phpt/twig instead of php/twig/xml/yml. Finally, the caching mechanism is enabled by default.

CLI options

1.x 2.0 Description Note
    --allow-risky Are risky fixers allowed                                                
--cache-file The path to the cache file option was added
--config Config class codename option was removed
--config-file --config The path to a .php_cs file option was renamed
--diff --diff Show diff
--dry-run --dry-run Run in dry-run mode
--fixers Coding standard fixers option was removed, see --rules
--format --format Choose format
--level Coding standard level option was removed, see --rules
--path-mode Should the finder from config beoverridden or intersected with path arg option was added
--rules Rules to be used option was added
--using-cache Does cache should be used option was added

CLI argument

On 2.x line path argument is an array, so you may pass multiple paths.

Intersection path mode makes the path argument a mask for finder you have defined in your configuration file. Only files pointed by both finder and CLI path argument will be fixed.

Exit codes

Exit codes for fix command have been changed and are build using the following bit flags:

Commits
  • 1023c34 CI: skip_cleanup: true
  • c86bcc4 prepared the 2.16.4 release
  • 0093132 Merge branch '2.15' into 2.16
  • a8de87d bumped version
  • 1617a6e prepared the 2.15.8 release
  • 691cf0a bug #5018 PhpdocScalarFixer - fix for comment with Windows line endings (kuba...
  • 213c93e PhpdocScalarFixer - fix for comment with Windows line endings
  • 5e6acea Merge branch '2.15' into 2.16
  • dfc4f07 bug #5029 SingleLineAfterImportsFixer - fix for line after import already add...
  • 5881633 SingleLineAfterImportsFixer - fix for line after import already added using CRLF
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)
dependabot-preview[bot] commented 4 years ago

Looks like friendsofphp/php-cs-fixer is up-to-date now, so this is no longer needed.