Skip to content

Commit

Permalink
Merge branch '2.16' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
julienfalque committed Aug 8, 2020
2 parents e95ca19 + bb9f729 commit 758091e
Show file tree
Hide file tree
Showing 10 changed files with 110 additions and 241 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ jobs:
<<: *STANDARD_TEST_JOB
stage: Test
php: 7.1
name: 7.1 | Symfony ~4.1.0
env: SYMFONY_DEPRECATIONS_HELPER=disabled PHP_CS_FIXER_TEST_USE_LEGACY_TOKENIZER=1 SYMFONY_VERSION="~4.1.0"
name: 7.1 | Symfony ~4.4.0
env: SYMFONY_DEPRECATIONS_HELPER=disabled PHP_CS_FIXER_TEST_USE_LEGACY_TOKENIZER=1 SYMFONY_VERSION="~4.4.0"

-
<<: *STANDARD_TEST_JOB
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"composer/xdebug-handler": "^1.2",
"doctrine/annotations": "^1.2",
"php-cs-fixer/diff": "^1.3",
"symfony/console": "^3.4.17 || ^4.1.6 || ^5.0",
"symfony/console": "^3.4.43 || ^4.4.11 || ^5.1.3",
"symfony/event-dispatcher": "^3.0 || ^4.0 || ^5.0",
"symfony/filesystem": "^3.0 || ^4.0 || ^5.0",
"symfony/finder": "^3.0 || ^4.0 || ^5.0",
Expand Down
10 changes: 10 additions & 0 deletions src/Fixer/CastNotation/NoUnsetCastFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ public function isCandidate(Tokens $tokens)
return $tokens->isTokenKindFound(T_UNSET_CAST);
}

/**
* {@inheritdoc}
*
* Must run before BinaryOperatorSpacesFixer.
*/
public function getPriority()
{
return 0;
}

/**
* {@inheritdoc}
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Fixer/Operator/BinaryOperatorSpacesFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function getDefinition()
/**
* {@inheritdoc}
*
* Must run after ArrayIndentationFixer, ArraySyntaxFixer, ListSyntaxFixer, NoMultilineWhitespaceAroundDoubleArrowFixer, PowToExponentiationFixer, StandardizeNotEqualsFixer, StrictComparisonFixer.
* Must run after ArrayIndentationFixer, ArraySyntaxFixer, ListSyntaxFixer, NoMultilineWhitespaceAroundDoubleArrowFixer, NoUnsetCastFixer, PowToExponentiationFixer, StandardizeNotEqualsFixer, StrictComparisonFixer.
*/
public function getPriority()
{
Expand Down
Loading

0 comments on commit 758091e

Please sign in to comment.