Skip to content

Commit aed9319

Browse files
committed
RuleError interfaces are part of BC promise
1 parent 4b3a9d5 commit aed9319

8 files changed

+21
-0
lines changed

Diff for: src/Rules/Api/BcUncoveredInterface.php

+14
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
use PHPStan\Reflection\ParameterReflectionWithPhpDocs;
99
use PHPStan\Reflection\ParametersAcceptorWithPhpDocs;
1010
use PHPStan\Reflection\ReflectionProvider;
11+
use PHPStan\Rules\FileRuleError;
12+
use PHPStan\Rules\IdentifierRuleError;
13+
use PHPStan\Rules\LineRuleError;
14+
use PHPStan\Rules\MetadataRuleError;
15+
use PHPStan\Rules\NonIgnorableRuleError;
16+
use PHPStan\Rules\RuleError;
17+
use PHPStan\Rules\TipRuleError;
1118
use PHPStan\Type\Type;
1219

1320
final class BcUncoveredInterface
@@ -21,6 +28,13 @@ final class BcUncoveredInterface
2128
ExtendedMethodReflection::class,
2229
ParametersAcceptorWithPhpDocs::class,
2330
ParameterReflectionWithPhpDocs::class,
31+
FileRuleError::class,
32+
IdentifierRuleError::class,
33+
LineRuleError::class,
34+
MetadataRuleError::class,
35+
NonIgnorableRuleError::class,
36+
RuleError::class,
37+
TipRuleError::class,
2438
];
2539

2640
}

Diff for: src/Rules/FileRuleError.php

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace PHPStan\Rules;
44

5+
/** @api */
56
interface FileRuleError extends RuleError
67
{
78

Diff for: src/Rules/IdentifierRuleError.php

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace PHPStan\Rules;
44

5+
/** @api */
56
interface IdentifierRuleError extends RuleError
67
{
78

Diff for: src/Rules/LineRuleError.php

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace PHPStan\Rules;
44

5+
/** @api */
56
interface LineRuleError extends RuleError
67
{
78

Diff for: src/Rules/MetadataRuleError.php

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace PHPStan\Rules;
44

5+
/** @api */
56
interface MetadataRuleError extends RuleError
67
{
78

Diff for: src/Rules/NonIgnorableRuleError.php

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace PHPStan\Rules;
44

5+
/** @api */
56
interface NonIgnorableRuleError extends RuleError
67
{
78

Diff for: src/Rules/RuleError.php

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace PHPStan\Rules;
44

5+
/** @api */
56
interface RuleError
67
{
78

Diff for: src/Rules/TipRuleError.php

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace PHPStan\Rules;
44

5+
/** @api */
56
interface TipRuleError extends RuleError
67
{
78

0 commit comments

Comments
 (0)