-
-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TypeDeclaration] Skip @inheritdoc on PropertyTypeDeclaration (#1752)
- Loading branch information
1 parent
c4b25ec
commit 7d8444e
Showing
4 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...on/Rector/Property/PropertyTypeDeclarationRector/Fixture/private_with_inherit_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,24 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\Property\PropertyTypeDeclarationRector\Fixture; | ||
|
||
final class PrivateWithInheritDoc { | ||
/** | ||
* @inheritDoc | ||
*/ | ||
private $property = 'test'; | ||
} | ||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\Property\PropertyTypeDeclarationRector\Fixture; | ||
|
||
final class PrivateWithInheritDoc { | ||
/** | ||
* @inheritDoc | ||
* @var string | ||
*/ | ||
private $property = 'test'; | ||
} | ||
?> |
14 changes: 14 additions & 0 deletions
14
...tion/Rector/Property/PropertyTypeDeclarationRector/Fixture/skip_typed_inherit_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,14 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\Property\PropertyTypeDeclarationRector\Fixture; | ||
|
||
class SkipTypedInheritDocParent { | ||
/** @var string */ | ||
public $property; | ||
} | ||
|
||
final class SkipTypedInheritDoc extends SkipTypedInheritDocParent { | ||
/** @inheritDoc */ | ||
public $property = 'test'; | ||
} | ||
?> |
13 changes: 13 additions & 0 deletions
13
...on/Rector/Property/PropertyTypeDeclarationRector/Fixture/skip_untyped_inherit_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,13 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\Property\PropertyTypeDeclarationRector\Fixture; | ||
|
||
class SkipUntypedInheritDocParent { | ||
public $property; | ||
} | ||
|
||
final class SkipUntypedInheritDoc extends SkipUntypedInheritDocParent { | ||
/** @inheritDoc */ | ||
public $property = 'test'; | ||
} | ||
?> |
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