Skip to content

Commit 45dcb12

Browse files
authored
Remove ReferenceAnalyzer (#417)
1 parent 4bad93a commit 45dcb12

File tree

6 files changed

+7
-185
lines changed

6 files changed

+7
-185
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG for PHP CS Fixer: custom fixers
22

3+
## v2.4.0 - [Unreleased]
4+
- Update PHP CS Fixer to v2.17
5+
- Remove PhpCsFixerCustomFixers\Analyzer\ReferenceAnalyzer - use PhpCsFixer\Tokenizer\Analyzer\ReferenceAnalyzer
6+
37
## v2.3.0 - *2020-07-07*
48
- Add NoUselessParenthesisFixer
59
- Add NoUselessStrlenFixer

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
[![CI Status](https://github.com/kubawerlos/php-cs-fixer-custom-fixers/workflows/CI/badge.svg?branch=master&event=push)](https://github.com/kubawerlos/php-cs-fixer-custom-fixers/actions)
1010
[![Code coverage](https://img.shields.io/coveralls/github/kubawerlos/php-cs-fixer-custom-fixers/master.svg)](https://coveralls.io/github/kubawerlos/php-cs-fixer-custom-fixers?branch=master)
11-
![Tests](https://img.shields.io/badge/tests-2307-brightgreen.svg)
11+
![Tests](https://img.shields.io/badge/tests-2260-brightgreen.svg)
1212
[![Mutation testing badge](https://badge.stryker-mutator.io/github.com/kubawerlos/php-cs-fixer-custom-fixers/master)](https://stryker-mutator.github.io)
1313
[![Psalm type coverage](https://shepherd.dev/github/kubawerlos/php-cs-fixer-custom-fixers/coverage.svg)](https://shepherd.dev/github/kubawerlos/php-cs-fixer-custom-fixers)
1414

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"require": {
1313
"php": "^7.2",
1414
"ext-tokenizer": "*",
15-
"friendsofphp/php-cs-fixer": "^2.16.7",
15+
"friendsofphp/php-cs-fixer": "^2.17",
1616
"symfony/finder": "^3.0 || ^4.0 || ^5.0"
1717
},
1818
"require-dev": {

src/Analyzer/ReferenceAnalyzer.php

Lines changed: 0 additions & 58 deletions
This file was deleted.

src/Fixer/OperatorLinebreakFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
use PhpCsFixer\FixerDefinition\FixerDefinition;
2121
use PhpCsFixer\FixerDefinition\FixerDefinitionInterface;
2222
use PhpCsFixer\Preg;
23+
use PhpCsFixer\Tokenizer\Analyzer\ReferenceAnalyzer;
2324
use PhpCsFixer\Tokenizer\Token;
2425
use PhpCsFixer\Tokenizer\Tokens;
2526
use PhpCsFixerCustomFixers\Analyzer\Analysis\CaseAnalysis;
26-
use PhpCsFixerCustomFixers\Analyzer\ReferenceAnalyzer;
2727
use PhpCsFixerCustomFixers\Analyzer\SwitchAnalyzer;
2828

2929
final class OperatorLinebreakFixer extends AbstractFixer implements ConfigurationDefinitionFixerInterface, DeprecatingFixerInterface

tests/Analyzer/ReferenceAnalyzerTest.php

Lines changed: 0 additions & 124 deletions
This file was deleted.

0 commit comments

Comments
 (0)