Skip to content

Commit

Permalink
Suppress PhpStorm rule: we cannot use a strict comparison here
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Nov 13, 2019
1 parent 2cfc3c8 commit 1e0e83b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Framework/Constraint/TraversableContains.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ protected function matches($other): bool
return true;
}

/* @noinspection TypeUnsafeComparisonInspection */
if (!$this->checkForObjectIdentity && $element == $this->value) {
return true;
}
Expand All @@ -86,6 +87,7 @@ protected function matches($other): bool
return true;
}

/* @noinspection TypeUnsafeComparisonInspection */
if (!$this->checkForNonObjectIdentity && $element == $this->value) {
return true;
}
Expand Down

0 comments on commit 1e0e83b

Please sign in to comment.