Skip to content

Commit 91c342f

Browse files
committed
minor #47390 [CS] Remove @inheritdoc PHPDoc (lyrixx)
This PR was merged into the 6.2 branch. Discussion ---------- [CS] Remove `@inheritdoc` PHPDoc | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | --- It looks like this PHP Doc is useless. IDEs are able to inherit the doc (at least VS Code and PHP Storm). And tools like PHP Stan are able to too https://phpstan.org/r/74a2c008-ff2b-42c0-8edf-8da87c1a7b5f I could have open an RFC before doing the PR, but it was easy :) So let's discuss here Commits ------- 015d5015e3 [CS] Remove `@inheritdoc` PHPDoc
2 parents b4491ac + 021fd05 commit 91c342f

28 files changed

+0
-120
lines changed

Node/AttributeNode.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ public function getValue(): ?string
6363
return $this->value;
6464
}
6565

66-
/**
67-
* {@inheritdoc}
68-
*/
6966
public function getSpecificity(): Specificity
7067
{
7168
return $this->selector->getSpecificity()->plus(new Specificity(0, 1, 0));

Node/ClassNode.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ public function getName(): string
4242
return $this->name;
4343
}
4444

45-
/**
46-
* {@inheritdoc}
47-
*/
4845
public function getSpecificity(): Specificity
4946
{
5047
return $this->selector->getSpecificity()->plus(new Specificity(0, 1, 0));

Node/CombinedSelectorNode.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ public function getSubSelector(): NodeInterface
4949
return $this->subSelector;
5050
}
5151

52-
/**
53-
* {@inheritdoc}
54-
*/
5552
public function getSpecificity(): Specificity
5653
{
5754
return $this->selector->getSpecificity()->plus($this->subSelector->getSpecificity());

Node/ElementNode.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ public function getElement(): ?string
4242
return $this->element;
4343
}
4444

45-
/**
46-
* {@inheritdoc}
47-
*/
4845
public function getSpecificity(): Specificity
4946
{
5047
return new Specificity(0, 0, $this->element ? 1 : 0);

Node/FunctionNode.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ public function getArguments(): array
5757
return $this->arguments;
5858
}
5959

60-
/**
61-
* {@inheritdoc}
62-
*/
6360
public function getSpecificity(): Specificity
6461
{
6562
return $this->selector->getSpecificity()->plus(new Specificity(0, 1, 0));

Node/HashNode.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ public function getId(): string
4242
return $this->id;
4343
}
4444

45-
/**
46-
* {@inheritdoc}
47-
*/
4845
public function getSpecificity(): Specificity
4946
{
5047
return $this->selector->getSpecificity()->plus(new Specificity(1, 0, 0));

Node/NegationNode.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ public function getSubSelector(): NodeInterface
4242
return $this->subSelector;
4343
}
4444

45-
/**
46-
* {@inheritdoc}
47-
*/
4845
public function getSpecificity(): Specificity
4946
{
5047
return $this->selector->getSpecificity()->plus($this->subSelector->getSpecificity());

Node/PseudoNode.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ public function getIdentifier(): string
4242
return $this->identifier;
4343
}
4444

45-
/**
46-
* {@inheritdoc}
47-
*/
4845
public function getSpecificity(): Specificity
4946
{
5047
return $this->selector->getSpecificity()->plus(new Specificity(0, 1, 0));

Node/SelectorNode.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ public function getPseudoElement(): ?string
4242
return $this->pseudoElement;
4343
}
4444

45-
/**
46-
* {@inheritdoc}
47-
*/
4845
public function getSpecificity(): Specificity
4946
{
5047
return $this->tree->getSpecificity()->plus(new Specificity(0, 0, $this->pseudoElement ? 1 : 0));

Parser/Handler/CommentHandler.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@
2626
*/
2727
class CommentHandler implements HandlerInterface
2828
{
29-
/**
30-
* {@inheritdoc}
31-
*/
3229
public function handle(Reader $reader, TokenStream $stream): bool
3330
{
3431
if ('/*' !== $reader->getSubstring(2)) {

0 commit comments

Comments
 (0)