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 1b4b134 commit 01aabcfCopy full SHA for 01aabcf
src/Type/AcceptsResult.php
@@ -6,6 +6,8 @@
6
use PHPStan\TrinaryLogic;
7
use function array_map;
8
use function array_merge;
9
+use function array_unique;
10
+use function array_values;
11
12
/** @api */
13
class AcceptsResult
@@ -60,15 +62,15 @@ public function and(self $other): self
60
62
{
61
63
return new self(
64
$this->result->and($other->result),
- array_merge($this->reasons, $other->reasons),
65
+ array_values(array_unique(array_merge($this->reasons, $other->reasons))),
66
);
67
}
68
69
public function or(self $other): self
70
71
72
$this->result->or($other->result),
73
74
75
76
0 commit comments