Skip to content

Commit c55d0e3

Browse files
canvuralondrejmirtes
authored andcommitted
add api annotation to AcceptsResult::__construct
1 parent da6e9ae commit c55d0e3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Type/AcceptsResult.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class AcceptsResult
1414
{
1515

1616
/**
17+
* @api
1718
* @param list<string> $reasons
1819
*/
1920
public function __construct(
@@ -43,9 +44,12 @@ public static function createYes(): self
4344
return new self(TrinaryLogic::createYes(), []);
4445
}
4546

46-
public static function createNo(): self
47+
/**
48+
* @param list<string> $reasons
49+
*/
50+
public static function createNo(array $reasons = []): self
4751
{
48-
return new self(TrinaryLogic::createNo(), []);
52+
return new self(TrinaryLogic::createNo(), $reasons);
4953
}
5054

5155
public static function createMaybe(): self

0 commit comments

Comments
 (0)