Skip to content

Commit

Permalink
[deprecations] Remove deprecated GetClassToInstanceOfRector, UseIncre…
Browse files Browse the repository at this point in the history
…mentAssignRector, DetectNodeCommand (#6278)

* Remove deprecated UseIncrementAssignRector

* Remove deprecated GetClassToInstanceOfRector

* Remove deprecated DetectNodeCommand

* remove deprecated InlineCodeParser parse()

* remove deprecated createNameScopeFromNode()
  • Loading branch information
TomasVotruba authored Sep 2, 2024
1 parent 0ee9020 commit 9da99ea
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 214 deletions.
64 changes: 0 additions & 64 deletions rules/CodeQuality/Rector/Identical/GetClassToInstanceOfRector.php

This file was deleted.

80 changes: 0 additions & 80 deletions rules/CodingStyle/Rector/Plus/UseIncrementAssignRector.php

This file was deleted.

43 changes: 0 additions & 43 deletions src/Console/Command/DetectNodeCommand.php

This file was deleted.

2 changes: 0 additions & 2 deletions src/DependencyInjection/LazyContainerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
use Rector\Configuration\ConfigInitializer;
use Rector\Configuration\RenamedClassesDataCollector;
use Rector\Console\Command\CustomRuleCommand;
use Rector\Console\Command\DetectNodeCommand;
use Rector\Console\Command\ListRulesCommand;
use Rector\Console\Command\ProcessCommand;
use Rector\Console\Command\SetupCICommand;
Expand Down Expand Up @@ -407,7 +406,6 @@ public function create(): RectorConfig
$rectorConfig->singleton(SetupCICommand::class);
$rectorConfig->singleton(ListRulesCommand::class);
$rectorConfig->singleton(CustomRuleCommand::class);
$rectorConfig->singleton(DetectNodeCommand::class);

$rectorConfig->when(ListRulesCommand::class)
->needs('$rectors')
Expand Down
16 changes: 0 additions & 16 deletions src/PhpParser/Parser/InlineCodeParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,22 +66,6 @@ public function __construct(
) {
}

/**
* @return Stmt[]
*
* @api
* @deprecated use parseFile() or parseString() instead
*/
public function parse(string $content): array
{
// to cover files too
if (is_file($content)) {
$content = FileSystem::read($content);
}

return $this->parseCode($content);
}

/**
* @api downgrade
*
Expand Down
9 changes: 0 additions & 9 deletions src/StaticTypeMapper/Naming/NameScopeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,6 @@ public function createNameScopeFromNodeWithoutTemplateTypes(Node $node): NameSco
return new NameScope($namespace, $usesAliasesToNames, $className);
}

/**
* @api
* @deprecated Use createNameScopeFromNodeWithoutTemplateTypes() instead, as same
*/
public function createNameScopeFromNode(Node $node): NameScope
{
return $this->createNameScopeFromNodeWithoutTemplateTypes($node);
}

/**
* @param array<Use_|GroupUse> $useNodes
* @return array<string, string>
Expand Down

0 comments on commit 9da99ea

Please sign in to comment.