From 44ffdb0af99b65d6d886911304472e60c10f312d Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sun, 25 Oct 2026 11:41:32 +0100 Subject: [PATCH] remove unused doctrine/inflector dependency --- composer.json | 1 - src/DependencyInjection/LazyContainerFactory.php | 7 ------- 2 files changed, 8 deletions(-) diff --git a/composer.json b/composer.json index e8d1fb52fd5..230a9d1fc79 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,6 @@ "composer/pcre": "^3.4.0", "composer/semver": "^3.4", "composer/xdebug-handler": "^3.0.5", - "doctrine/inflector": "^2.1", "entropy/entropy": "^0.4.12", "fidry/cpu-core-counter": "^1.1", "nette/utils": "^4.1.5", diff --git a/src/DependencyInjection/LazyContainerFactory.php b/src/DependencyInjection/LazyContainerFactory.php index efeee525f90..cdda385b5aa 100644 --- a/src/DependencyInjection/LazyContainerFactory.php +++ b/src/DependencyInjection/LazyContainerFactory.php @@ -4,8 +4,6 @@ namespace Rector\DependencyInjection; -use Doctrine\Inflector\Inflector; -use Doctrine\Inflector\Rules\English\InflectorFactory; use PhpParser\Lexer; use PHPStan\Analyser\NodeScopeResolver; use PHPStan\Analyser\ScopeFactory; @@ -149,11 +147,6 @@ private function registerConsole(RectorConfig $rectorConfig): void return $consoleApplication; }); - $rectorConfig->singleton(Inflector::class, static function (): Inflector { - $inflectorFactory = new InflectorFactory(); - return $inflectorFactory->build(); - }); - $rectorConfig->singleton(ConfigurationRuleFilter::class); $rectorConfig->singleton(ProcessCommand::class);