diff --git a/src/Framework/Constraint/TraversableContains.php b/src/Framework/Constraint/TraversableContains.php index ace1c781305..80b7b3a8b26 100644 --- a/src/Framework/Constraint/TraversableContains.php +++ b/src/Framework/Constraint/TraversableContains.php @@ -76,6 +76,7 @@ protected function matches($other): bool return true; } + /* @noinspection TypeUnsafeComparisonInspection */ if (!$this->checkForObjectIdentity && $element == $this->value) { return true; } @@ -86,6 +87,7 @@ protected function matches($other): bool return true; } + /* @noinspection TypeUnsafeComparisonInspection */ if (!$this->checkForNonObjectIdentity && $element == $this->value) { return true; }