Skip to content

Commit

Permalink
[Renaming] Deprecate PseudoNamespaceToNamespaceRector as too dynamic …
Browse files Browse the repository at this point in the history
…and unreliable, use the RenameClassRector instead (#4755)
  • Loading branch information
TomasVotruba committed Aug 10, 2023
1 parent f294e6d commit bcb51e8
Show file tree
Hide file tree
Showing 23 changed files with 16 additions and 609 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@
"classmap": [
"stubs",
"rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Source",
"rules-tests/Renaming/Rector/Name/RenameClassRector/Source",
"rules-tests/Renaming/Rector/FileWithoutNamespace/PseudoNamespaceToNamespaceRector/Source"
"rules-tests/Renaming/Rector/Name/RenameClassRector/Source"
],
"files": [
"stubs/Directory.php",
Expand Down
1 change: 0 additions & 1 deletion config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@

__DIR__ . '/../packages/PHPStanStaticTypeMapper/Enum',
__DIR__ . '/../packages/Caching/Cache.php',
__DIR__ . '/../packages/NodeTypeResolver/PhpDocNodeVisitor/UnderscoreRenamePhpDocNodeVisitor.php',
__DIR__ . '/../packages/NodeTypeResolver/PHPStan/ObjectWithoutClassTypeWithParentTypes.php',

// used in PHPStan
Expand Down
41 changes: 0 additions & 41 deletions packages/NodeTypeResolver/PhpDoc/PhpDocTypeRenamer.php

This file was deleted.

This file was deleted.

3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -711,3 +711,6 @@ parameters:

# not practical
- '#Use separate function calls with readable variable names#'

# deprecated
- '#Class "Rector\\Renaming\\Rector\\FileWithoutNamespace\\PseudoNamespaceToNamespaceRector" is missing @see annotation with test case class reference#'

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit bcb51e8

Please sign in to comment.