Skip to content

Commit

Permalink
RuleError interfaces are part of BC promise
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Mar 2, 2023
1 parent 4b3a9d5 commit aed9319
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Rules/Api/BcUncoveredInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
use PHPStan\Reflection\ParameterReflectionWithPhpDocs;
use PHPStan\Reflection\ParametersAcceptorWithPhpDocs;
use PHPStan\Reflection\ReflectionProvider;
use PHPStan\Rules\FileRuleError;
use PHPStan\Rules\IdentifierRuleError;
use PHPStan\Rules\LineRuleError;
use PHPStan\Rules\MetadataRuleError;
use PHPStan\Rules\NonIgnorableRuleError;
use PHPStan\Rules\RuleError;
use PHPStan\Rules\TipRuleError;
use PHPStan\Type\Type;

final class BcUncoveredInterface
Expand All @@ -21,6 +28,13 @@ final class BcUncoveredInterface
ExtendedMethodReflection::class,
ParametersAcceptorWithPhpDocs::class,
ParameterReflectionWithPhpDocs::class,
FileRuleError::class,
IdentifierRuleError::class,
LineRuleError::class,
MetadataRuleError::class,
NonIgnorableRuleError::class,
RuleError::class,
TipRuleError::class,
];

}
1 change: 1 addition & 0 deletions src/Rules/FileRuleError.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace PHPStan\Rules;

/** @api */
interface FileRuleError extends RuleError
{

Expand Down
1 change: 1 addition & 0 deletions src/Rules/IdentifierRuleError.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace PHPStan\Rules;

/** @api */
interface IdentifierRuleError extends RuleError
{

Expand Down
1 change: 1 addition & 0 deletions src/Rules/LineRuleError.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace PHPStan\Rules;

/** @api */
interface LineRuleError extends RuleError
{

Expand Down
1 change: 1 addition & 0 deletions src/Rules/MetadataRuleError.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace PHPStan\Rules;

/** @api */
interface MetadataRuleError extends RuleError
{

Expand Down
1 change: 1 addition & 0 deletions src/Rules/NonIgnorableRuleError.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace PHPStan\Rules;

/** @api */
interface NonIgnorableRuleError extends RuleError
{

Expand Down
1 change: 1 addition & 0 deletions src/Rules/RuleError.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace PHPStan\Rules;

/** @api */
interface RuleError
{

Expand Down
1 change: 1 addition & 0 deletions src/Rules/TipRuleError.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace PHPStan\Rules;

/** @api */
interface TipRuleError extends RuleError
{

Expand Down

0 comments on commit aed9319

Please sign in to comment.