-
-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Naming] @param doc should follow variable renamed on RenamePropertyT…
…oMatchTypeRector (#170)
- Loading branch information
1 parent
ca8f75f
commit bc84def
Showing
2 changed files
with
89 additions
and
5 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
...aming/Rector/Class_/RenamePropertyToMatchTypeRector/FixturePhp80/rename_param_doc.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Naming\Rector\Class_\RenamePropertyToMatchTypeRector\FixturePhp80; | ||
|
||
use Rector\Core\NodeAnalyzer\ClassAnalyzer; | ||
|
||
final class RenameParamDoc | ||
{ | ||
/** | ||
* @param ClassAnalyzer $analyzer | ||
*/ | ||
public function __construct( | ||
private ClassAnalyzer $analyzer | ||
) { | ||
} | ||
|
||
public function getAnalyzer(): ClassAnalyzer | ||
{ | ||
return $this->analyzer; | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\Naming\Rector\Class_\RenamePropertyToMatchTypeRector\FixturePhp80; | ||
|
||
use Rector\Core\NodeAnalyzer\ClassAnalyzer; | ||
|
||
final class RenameParamDoc | ||
{ | ||
/** | ||
* @param ClassAnalyzer $classAnalyzer | ||
*/ | ||
public function __construct( | ||
private ClassAnalyzer $classAnalyzer | ||
) { | ||
} | ||
|
||
public function getAnalyzer(): ClassAnalyzer | ||
{ | ||
return $this->classAnalyzer; | ||
} | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters