Skip to content

Commit 68ed6d3

Browse files
committed
TMP: exercise mutation testing (drop before merge)
1 parent 4b2a02f commit 68ed6d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/Type/IntersectionType.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public function accepts(Type $otherType, bool $strictTypes): AcceptsResult
269269
$isList = $otherType->isList();
270270
$reasons = $result->reasons;
271271
$verbosity = VerbosityLevel::getRecommendedLevelByType($this, $otherType);
272-
if ($this->isList()->yes() && !$isList->yes()) {
272+
if (($this->isList()->yes()) && !$isList->yes()) {
273273
$reasons[] = sprintf(
274274
'%s %s a list.',
275275
$otherType->describe($verbosity),
@@ -278,7 +278,7 @@ public function accepts(Type $otherType, bool $strictTypes): AcceptsResult
278278
}
279279

280280
$isNonEmpty = $otherType->isIterableAtLeastOnce();
281-
if ($this->isIterableAtLeastOnce()->yes() && !$isNonEmpty->yes()) {
281+
if (($this->isIterableAtLeastOnce()->yes()) && !$isNonEmpty->yes()) {
282282
$reasons[] = sprintf(
283283
'%s %s empty.',
284284
$otherType->describe($verbosity),

0 commit comments

Comments
 (0)