Skip to content

Commit b56babe

Browse files
authored
remove unused doctrine/inflector dependency (#8816)
1 parent e65cd8c commit b56babe

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

‎composer.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"composer/pcre": "^3.4.0",
1818
"composer/semver": "^3.4",
1919
"composer/xdebug-handler": "^3.0.5",
20-
"doctrine/inflector": "^2.1",
2120
"entropy/entropy": "^0.4.12",
2221
"fidry/cpu-core-counter": "^1.1",
2322
"nette/utils": "^4.1.5",

‎src/DependencyInjection/LazyContainerFactory.php‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
namespace Rector\DependencyInjection;
66

7-
use Doctrine\Inflector\Inflector;
8-
use Doctrine\Inflector\Rules\English\InflectorFactory;
97
use PhpParser\Lexer;
108
use PHPStan\Analyser\NodeScopeResolver;
119
use PHPStan\Analyser\ScopeFactory;
@@ -147,11 +145,6 @@ private function registerConsole(RectorConfig $rectorConfig): void
147145
return $consoleApplication;
148146
});
149147

150-
$rectorConfig->singleton(Inflector::class, static function (): Inflector {
151-
$inflectorFactory = new InflectorFactory();
152-
return $inflectorFactory->build();
153-
});
154-
155148
$rectorConfig->singleton(ConfigurationRuleFilter::class);
156149

157150
$rectorConfig->singleton(ProcessCommand::class);

0 commit comments

Comments
 (0)