We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da6e9ae commit c55d0e3Copy full SHA for c55d0e3
src/Type/AcceptsResult.php
@@ -14,6 +14,7 @@ class AcceptsResult
14
{
15
16
/**
17
+ * @api
18
* @param list<string> $reasons
19
*/
20
public function __construct(
@@ -43,9 +44,12 @@ public static function createYes(): self
43
44
return new self(TrinaryLogic::createYes(), []);
45
}
46
- public static function createNo(): self
47
+ /**
48
+ * @param list<string> $reasons
49
+ */
50
+ public static function createNo(array $reasons = []): self
51
- return new self(TrinaryLogic::createNo(), []);
52
+ return new self(TrinaryLogic::createNo(), $reasons);
53
54
55
public static function createMaybe(): self
0 commit comments