Skip to content

Commit a777c0e

Browse files
committed
[CS] Remove @inheritdoc PHPDoc
1 parent 5d30a93 commit a777c0e

11 files changed

+0
-35
lines changed

Error/ClassNotFoundError.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313

1414
class ClassNotFoundError extends \Error
1515
{
16-
/**
17-
* {@inheritdoc}
18-
*/
1916
public function __construct(string $message, \Throwable $previous)
2017
{
2118
parent::__construct($message, $previous->getCode(), $previous->getPrevious());

Error/FatalError.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ class FatalError extends \Error
1616
private array $error;
1717

1818
/**
19-
* {@inheritdoc}
20-
*
2119
* @param array $error An array as returned by error_get_last()
2220
*/
2321
public function __construct(string $message, int $code, array $error, int $traceOffset = null, bool $traceArgs = true, array $trace = null)
@@ -78,9 +76,6 @@ public function __construct(string $message, int $code, array $error, int $trace
7876
}
7977
}
8078

81-
/**
82-
* {@inheritdoc}
83-
*/
8479
public function getError(): array
8580
{
8681
return $this->error;

Error/UndefinedFunctionError.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313

1414
class UndefinedFunctionError extends \Error
1515
{
16-
/**
17-
* {@inheritdoc}
18-
*/
1916
public function __construct(string $message, \Throwable $previous)
2017
{
2118
parent::__construct($message, $previous->getCode(), $previous->getPrevious());

Error/UndefinedMethodError.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313

1414
class UndefinedMethodError extends \Error
1515
{
16-
/**
17-
* {@inheritdoc}
18-
*/
1916
public function __construct(string $message, \Throwable $previous)
2017
{
2118
parent::__construct($message, $previous->getCode(), $previous->getPrevious());

ErrorEnhancer/ClassNotFoundErrorEnhancer.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
*/
2222
class ClassNotFoundErrorEnhancer implements ErrorEnhancerInterface
2323
{
24-
/**
25-
* {@inheritdoc}
26-
*/
2724
public function enhance(\Throwable $error): ?\Throwable
2825
{
2926
// Some specific versions of PHP produce a fatal error when extending a not found class.

ErrorEnhancer/UndefinedFunctionErrorEnhancer.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
*/
2020
class UndefinedFunctionErrorEnhancer implements ErrorEnhancerInterface
2121
{
22-
/**
23-
* {@inheritdoc}
24-
*/
2522
public function enhance(\Throwable $error): ?\Throwable
2623
{
2724
if ($error instanceof FatalError) {

ErrorEnhancer/UndefinedMethodErrorEnhancer.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
*/
2020
class UndefinedMethodErrorEnhancer implements ErrorEnhancerInterface
2121
{
22-
/**
23-
* {@inheritdoc}
24-
*/
2522
public function enhance(\Throwable $error): ?\Throwable
2623
{
2724
if ($error instanceof FatalError) {

ErrorRenderer/CliErrorRenderer.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ class_exists(CliDumper::class);
2323
*/
2424
class CliErrorRenderer implements ErrorRendererInterface
2525
{
26-
/**
27-
* {@inheritdoc}
28-
*/
2926
public function render(\Throwable $exception): FlattenException
3027
{
3128
$cloner = new VarCloner();

ErrorRenderer/HtmlErrorRenderer.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ public function __construct(bool|callable $debug = false, string $charset = null
5959
$this->logger = $logger;
6060
}
6161

62-
/**
63-
* {@inheritdoc}
64-
*/
6562
public function render(\Throwable $exception): FlattenException
6663
{
6764
$headers = ['Content-Type' => 'text/html; charset='.$this->charset];

ErrorRenderer/SerializerErrorRenderer.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ public function __construct(SerializerInterface $serializer, string|callable $fo
4242
$this->debug = \is_bool($debug) ? $debug : $debug(...);
4343
}
4444

45-
/**
46-
* {@inheritdoc}
47-
*/
4845
public function render(\Throwable $exception): FlattenException
4946
{
5047
$headers = [];

Tests/Fixtures/ExtendedFinalMethod.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ class ExtendedFinalMethod extends FinalMethod
66
{
77
use FinalMethod2Trait;
88

9-
/**
10-
* {@inheritdoc}
11-
*/
129
public function finalMethod()
1310
{
1411
}

0 commit comments

Comments
 (0)