Skip to content

Commit 43d5026

Browse files
committed
PHPDoc tag @api-do-not-implement instead of list in BcUncoveredInterface
1 parent 1f016a3 commit 43d5026

33 files changed

Lines changed: 92 additions & 104 deletions

src/Analyser/Scope.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
* $x is of type Foo.
4343
*
4444
* @api
45+
* @api-do-not-implement
4546
*/
4647
interface Scope extends ClassMemberAccessAnswerer, NamespaceAnswerer
4748
{

src/Command/Output.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
namespace PHPStan\Command;
44

5-
/** @api */
5+
/**
6+
* @api
7+
* @api-do-not-implement
8+
*/
69
interface Output
710
{
811

src/Command/OutputStyle.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
namespace PHPStan\Command;
44

5-
/** @api */
5+
/**
6+
* @api
7+
* @api-do-not-implement
8+
*/
69
interface OutputStyle
710
{
811

src/DependencyInjection/Container.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
namespace PHPStan\DependencyInjection;
44

5-
/** @api */
5+
/**
6+
* @api
7+
* @api-do-not-implement
8+
*/
69
interface Container
710
{
811

src/Node/ReturnStatementsNode.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
use PHPStan\Analyser\ImpurePoint;
88
use PHPStan\Analyser\StatementResult;
99

10-
/** @api */
10+
/**
11+
* @api
12+
* @api-do-not-implement
13+
*/
1114
interface ReturnStatementsNode extends VirtualNode
1215
{
1316

src/Node/VirtualNode.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
use PhpParser\Node;
66

7-
/** @api */
7+
/**
8+
* @api
9+
* @api-do-not-implement
10+
*/
811
interface VirtualNode extends Node
912
{
1013

src/PhpDoc/Tag/TypedTag.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
use PHPStan\Type\Type;
66

7-
/** @api */
7+
/**
8+
* @api
9+
* @api-do-not-implement
10+
*/
811
interface TypedTag
912
{
1013

src/Reflection/Callables/CallableParametersAcceptor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* - Expressions that are invalidated by calling this callable
2525
*
2626
* @api
27+
* @api-do-not-implement
2728
*/
2829
interface CallableParametersAcceptor extends ParametersAcceptor
2930
{

src/Reflection/ClassConstantReflection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* This is the return type of Type::getConstant() and Scope::getConstantReflection().
2020
*
2121
* @api
22+
* @api-do-not-implement
2223
*/
2324
interface ClassConstantReflection extends ClassMemberReflection, ConstantReflection
2425
{

src/Reflection/ClassMemberAccessAnswerer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* OutOfClassScope, is used when accessing members from outside any class.
1616
*
1717
* @api
18+
* @api-do-not-implement
1819
*/
1920
interface ClassMemberAccessAnswerer
2021
{

0 commit comments

Comments
 (0)