Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update IntersectionType.php
  • Loading branch information
staabm committed May 18, 2026
commit 212a920abf8bc2525cf8abc5698172b9fa7ff3ce
2 changes: 1 addition & 1 deletion src/Type/IntersectionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@
{
$cb = static fn (Type $type): Type => $type->getValuesArray();
if ($this->isList()->yes()) {
return $this->intersectTypesPreserveTemplateType($cb);
return $this;
}
return $this->intersectTypes($cb);
}
Expand Down Expand Up @@ -1201,7 +1201,7 @@
public function shuffleArray(): Type
{
$cb = static fn (Type $type): Type => $type->shuffleArray();
if ($this->isList()->yes()) {

Check warning on line 1204 in src/Type/IntersectionType.php

View workflow job for this annotation

GitHub Actions / Mutation Testing (8.3, ubuntu-latest)

Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ public function shuffleArray(): Type { $cb = static fn (Type $type): Type => $type->shuffleArray(); - if ($this->isList()->yes()) { + if (!$this->isList()->no()) { return $this->intersectTypesPreserveTemplateType($cb); } return $this->intersectTypes($cb);

Check warning on line 1204 in src/Type/IntersectionType.php

View workflow job for this annotation

GitHub Actions / Mutation Testing (8.4, ubuntu-latest)

Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ public function shuffleArray(): Type { $cb = static fn (Type $type): Type => $type->shuffleArray(); - if ($this->isList()->yes()) { + if (!$this->isList()->no()) { return $this->intersectTypesPreserveTemplateType($cb); } return $this->intersectTypes($cb);
return $this->intersectTypesPreserveTemplateType($cb);
}
return $this->intersectTypes($cb);
Expand Down
Loading