Skip to content

Commit f6772df

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 c8870b1 + 34ee705 commit f6772df

File tree

4 files changed

+0
-28
lines changed

4 files changed

+0
-28
lines changed

Test/Constraint/CrawlerSelectorAttributeValueSame.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,13 @@ public function __construct(string $selector, string $attribute, string $expecte
2727
$this->expectedText = $expectedText;
2828
}
2929

30-
/**
31-
* {@inheritdoc}
32-
*/
3330
public function toString(): string
3431
{
3532
return sprintf('has a node matching selector "%s" with attribute "%s" of value "%s"', $this->selector, $this->attribute, $this->expectedText);
3633
}
3734

3835
/**
3936
* @param Crawler $crawler
40-
*
41-
* {@inheritdoc}
4237
*/
4338
protected function matches($crawler): bool
4439
{
@@ -52,8 +47,6 @@ protected function matches($crawler): bool
5247

5348
/**
5449
* @param Crawler $crawler
55-
*
56-
* {@inheritdoc}
5750
*/
5851
protected function failureDescription($crawler): string
5952
{

Test/Constraint/CrawlerSelectorExists.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,13 @@ public function __construct(string $selector)
2323
$this->selector = $selector;
2424
}
2525

26-
/**
27-
* {@inheritdoc}
28-
*/
2926
public function toString(): string
3027
{
3128
return sprintf('matches selector "%s"', $this->selector);
3229
}
3330

3431
/**
3532
* @param Crawler $crawler
36-
*
37-
* {@inheritdoc}
3833
*/
3934
protected function matches($crawler): bool
4035
{
@@ -43,8 +38,6 @@ protected function matches($crawler): bool
4338

4439
/**
4540
* @param Crawler $crawler
46-
*
47-
* {@inheritdoc}
4841
*/
4942
protected function failureDescription($crawler): string
5043
{

Test/Constraint/CrawlerSelectorTextContains.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ public function __construct(string $selector, string $expectedText)
2727
$this->expectedText = $expectedText;
2828
}
2929

30-
/**
31-
* {@inheritdoc}
32-
*/
3330
public function toString(): string
3431
{
3532
if ($this->hasNode) {
@@ -41,8 +38,6 @@ public function toString(): string
4138

4239
/**
4340
* @param Crawler $crawler
44-
*
45-
* {@inheritdoc}
4641
*/
4742
protected function matches($crawler): bool
4843
{
@@ -61,8 +56,6 @@ protected function matches($crawler): bool
6156

6257
/**
6358
* @param Crawler $crawler
64-
*
65-
* {@inheritdoc}
6659
*/
6760
protected function failureDescription($crawler): string
6861
{

Test/Constraint/CrawlerSelectorTextSame.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,13 @@ public function __construct(string $selector, string $expectedText)
2525
$this->expectedText = $expectedText;
2626
}
2727

28-
/**
29-
* {@inheritdoc}
30-
*/
3128
public function toString(): string
3229
{
3330
return sprintf('has a node matching selector "%s" with content "%s"', $this->selector, $this->expectedText);
3431
}
3532

3633
/**
3734
* @param Crawler $crawler
38-
*
39-
* {@inheritdoc}
4035
*/
4136
protected function matches($crawler): bool
4237
{
@@ -50,8 +45,6 @@ protected function matches($crawler): bool
5045

5146
/**
5247
* @param Crawler $crawler
53-
*
54-
* {@inheritdoc}
5548
*/
5649
protected function failureDescription($crawler): string
5750
{

0 commit comments

Comments
 (0)