Skip to content

Commit 47100f4

Browse files
committed
mark interface methods as @api instead of baseline ignore
1 parent 0418bab commit 47100f4

3 files changed

Lines changed: 4 additions & 12 deletions

File tree

‎phpstan-baseline-dead-code.neon‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,6 @@ parameters:
66
identifier: shipmonk.deadMethod
77
path: rules/Php80/Contract/StrStartWithMatchAndRefactorInterface.php
88

9-
-
10-
message: '#^Unused Rector\\BetterPhpDocParser\\Contract\\PhpDocParser\\PhpDocNodeDecoratorInterface\:\:decorate$#'
11-
identifier: shipmonk.deadMethod
12-
count: 1
13-
path: src/BetterPhpDocParser/Contract/PhpDocParser/PhpDocNodeDecoratorInterface.php
14-
15-
-
16-
message: '#^Unused Rector\\Parallel\\Contract\\SerializableInterface\:\:decode$#'
17-
identifier: shipmonk.deadMethod
18-
count: 1
19-
path: src/Parallel/Contract/SerializableInterface.php
20-
219
# called magically by parent
2210
-
2311
message: '#^Unused Rector\\PhpParser\\Printer\\BetterStandardPrinter\:\:(pInterpolatedStringPart|pStmt_FileNode)$#'

‎src/BetterPhpDocParser/Contract/PhpDocParser/PhpDocNodeDecoratorInterface.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@
99

1010
interface PhpDocNodeDecoratorInterface
1111
{
12+
/**
13+
* @api implemented by child classes
14+
*/
1215
public function decorate(PhpDocNode $phpDocNode, Node $phpNode): void;
1316
}

‎src/Parallel/Contract/SerializableInterface.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
interface SerializableInterface extends JsonSerializable
1010
{
1111
/**
12+
* @api implemented by child classes
1213
* @param array<string, mixed> $json
1314
*/
1415
public static function decode(array $json): self;

0 commit comments

Comments
 (0)