Fix sending infection report to Stryker dashboard #14
Annotations
60 warnings
tests (use-platform-reqs, 8.1, lowest):
src/Comparator/ContainsValueComparator.php#L27
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ true && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.1, lowest):
src/Comparator/ContainsValueComparator.php#L27
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && true, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.1, lowest):
src/Comparator/ContainsValueComparator.php#L27
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface || $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.1, lowest):
src/Comparator/ContainsValueComparator.php#L28
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, true && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.1, lowest):
src/Comparator/ContainsValueComparator.php#L28
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && true => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.1, lowest):
src/Comparator/ContainsValueComparator.php#L28
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface || $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.1, lowest):
src/Comparator/ContainsValueComparator.php#L30
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
{
return match (true) {
$leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
- $leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
+ true && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
}
|
tests (use-platform-reqs, 8.1, lowest):
src/Comparator/ContainsValueComparator.php#L30
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
{
return match (true) {
$leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
- $leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
+ $leftValue instanceof ObjectValueInterface && true => $this->objectContains($leftValue, $rightValue),
default => false,
};
}
|
tests (use-platform-reqs, 8.1, lowest):
src/Comparator/ContainsValueComparator.php#L30
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
{
return match (true) {
$leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
- $leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
+ $leftValue instanceof ObjectValueInterface || $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
}
|
tests (use-platform-reqs, 8.1, lowest):
src/Comparator/EqualValueComparator.php#L27
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface => $this->isScalarEqual($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && true => $this->isScalarEqual($leftValue, $rightValue),
$leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->isArrayEqual($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->isObjectEqual($leftValue, $rightValue),
default => false,
|
tests (use-platform-reqs, 8.3, lowest):
src/Comparator/ContainsValueComparator.php#L27
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ true && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.3, lowest):
src/Comparator/ContainsValueComparator.php#L27
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && true, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.3, lowest):
src/Comparator/ContainsValueComparator.php#L27
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface || $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.3, lowest):
src/Comparator/ContainsValueComparator.php#L28
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, true && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.3, lowest):
src/Comparator/ContainsValueComparator.php#L28
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && true => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.3, lowest):
src/Comparator/ContainsValueComparator.php#L28
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface || $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.3, lowest):
src/Comparator/ContainsValueComparator.php#L30
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
{
return match (true) {
$leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
- $leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
+ true && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
}
|
tests (use-platform-reqs, 8.3, lowest):
src/Comparator/ContainsValueComparator.php#L30
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
{
return match (true) {
$leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
- $leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
+ $leftValue instanceof ObjectValueInterface && true => $this->objectContains($leftValue, $rightValue),
default => false,
};
}
|
tests (use-platform-reqs, 8.3, lowest):
src/Comparator/ContainsValueComparator.php#L30
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
{
return match (true) {
$leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
- $leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
+ $leftValue instanceof ObjectValueInterface || $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
}
|
tests (use-platform-reqs, 8.3, lowest):
src/Comparator/EqualValueComparator.php#L27
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface => $this->isScalarEqual($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && true => $this->isScalarEqual($leftValue, $rightValue),
$leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->isArrayEqual($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->isObjectEqual($leftValue, $rightValue),
default => false,
|
tests (use-platform-reqs, 8.3, highest):
src/Comparator/ContainsValueComparator.php#L27
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ true && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.3, highest):
src/Comparator/ContainsValueComparator.php#L27
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && true, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.3, highest):
src/Comparator/ContainsValueComparator.php#L27
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface || $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.3, highest):
src/Comparator/ContainsValueComparator.php#L28
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, true && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.3, highest):
src/Comparator/ContainsValueComparator.php#L28
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && true => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.3, highest):
src/Comparator/ContainsValueComparator.php#L28
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface || $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.3, highest):
src/Comparator/ContainsValueComparator.php#L30
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
{
return match (true) {
$leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
- $leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
+ true && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
}
|
tests (use-platform-reqs, 8.3, highest):
src/Comparator/ContainsValueComparator.php#L30
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
{
return match (true) {
$leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
- $leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
+ $leftValue instanceof ObjectValueInterface && true => $this->objectContains($leftValue, $rightValue),
default => false,
};
}
|
tests (use-platform-reqs, 8.3, highest):
src/Comparator/ContainsValueComparator.php#L30
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
{
return match (true) {
$leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
- $leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
+ $leftValue instanceof ObjectValueInterface || $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
}
|
tests (use-platform-reqs, 8.3, highest):
src/Comparator/EqualValueComparator.php#L27
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface => $this->isScalarEqual($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && true => $this->isScalarEqual($leftValue, $rightValue),
$leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->isArrayEqual($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->isObjectEqual($leftValue, $rightValue),
default => false,
|
tests (use-platform-reqs, 8.2, lowest):
src/Comparator/ContainsValueComparator.php#L27
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ true && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.2, lowest):
src/Comparator/ContainsValueComparator.php#L27
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && true, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.2, lowest):
src/Comparator/ContainsValueComparator.php#L27
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface || $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.2, lowest):
src/Comparator/ContainsValueComparator.php#L28
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, true && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.2, lowest):
src/Comparator/ContainsValueComparator.php#L28
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && true => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.2, lowest):
src/Comparator/ContainsValueComparator.php#L28
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface || $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.2, lowest):
src/Comparator/ContainsValueComparator.php#L30
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
{
return match (true) {
$leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
- $leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
+ true && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
}
|
tests (use-platform-reqs, 8.2, lowest):
src/Comparator/ContainsValueComparator.php#L30
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
{
return match (true) {
$leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
- $leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
+ $leftValue instanceof ObjectValueInterface && true => $this->objectContains($leftValue, $rightValue),
default => false,
};
}
|
tests (use-platform-reqs, 8.2, lowest):
src/Comparator/ContainsValueComparator.php#L30
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
{
return match (true) {
$leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
- $leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
+ $leftValue instanceof ObjectValueInterface || $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
}
|
tests (use-platform-reqs, 8.2, lowest):
src/Comparator/EqualValueComparator.php#L27
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface => $this->isScalarEqual($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && true => $this->isScalarEqual($leftValue, $rightValue),
$leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->isArrayEqual($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->isObjectEqual($leftValue, $rightValue),
default => false,
|
tests (use-platform-reqs, 8.1, highest):
src/Comparator/ContainsValueComparator.php#L27
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ true && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.1, highest):
src/Comparator/ContainsValueComparator.php#L27
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && true, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.1, highest):
src/Comparator/ContainsValueComparator.php#L27
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface || $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.1, highest):
src/Comparator/ContainsValueComparator.php#L28
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, true && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.1, highest):
src/Comparator/ContainsValueComparator.php#L28
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && true => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.1, highest):
src/Comparator/ContainsValueComparator.php#L28
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface || $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.1, highest):
src/Comparator/ContainsValueComparator.php#L30
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
{
return match (true) {
$leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
- $leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
+ true && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
}
|
tests (use-platform-reqs, 8.1, highest):
src/Comparator/ContainsValueComparator.php#L30
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
{
return match (true) {
$leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
- $leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
+ $leftValue instanceof ObjectValueInterface && true => $this->objectContains($leftValue, $rightValue),
default => false,
};
}
|
tests (use-platform-reqs, 8.1, highest):
src/Comparator/ContainsValueComparator.php#L30
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
{
return match (true) {
$leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
- $leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
+ $leftValue instanceof ObjectValueInterface || $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
}
|
tests (use-platform-reqs, 8.1, highest):
src/Comparator/EqualValueComparator.php#L27
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface => $this->isScalarEqual($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && true => $this->isScalarEqual($leftValue, $rightValue),
$leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->isArrayEqual($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->isObjectEqual($leftValue, $rightValue),
default => false,
|
tests (use-platform-reqs, 8.2, highest):
src/Comparator/ContainsValueComparator.php#L27
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ true && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.2, highest):
src/Comparator/ContainsValueComparator.php#L27
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && true, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.2, highest):
src/Comparator/ContainsValueComparator.php#L27
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface || $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.2, highest):
src/Comparator/ContainsValueComparator.php#L28
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, true && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.2, highest):
src/Comparator/ContainsValueComparator.php#L28
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && true => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.2, highest):
src/Comparator/ContainsValueComparator.php#L28
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface || $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
|
tests (use-platform-reqs, 8.2, highest):
src/Comparator/ContainsValueComparator.php#L30
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
{
return match (true) {
$leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
- $leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
+ true && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
}
|
tests (use-platform-reqs, 8.2, highest):
src/Comparator/ContainsValueComparator.php#L30
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
{
return match (true) {
$leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
- $leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
+ $leftValue instanceof ObjectValueInterface && true => $this->objectContains($leftValue, $rightValue),
default => false,
};
}
|
tests (use-platform-reqs, 8.2, highest):
src/Comparator/ContainsValueComparator.php#L30
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
{
return match (true) {
$leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface, $leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->equalComparator->compare($leftValue, $rightValue),
- $leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
+ $leftValue instanceof ObjectValueInterface || $rightValue instanceof ObjectValueInterface => $this->objectContains($leftValue, $rightValue),
default => false,
};
}
|
tests (use-platform-reqs, 8.2, highest):
src/Comparator/EqualValueComparator.php#L27
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function compare(ValueInterface $leftValue, ValueInterface $rightValue) : bool
{
return match (true) {
- $leftValue instanceof ScalarValueInterface && $rightValue instanceof ScalarValueInterface => $this->isScalarEqual($leftValue, $rightValue),
+ $leftValue instanceof ScalarValueInterface && true => $this->isScalarEqual($leftValue, $rightValue),
$leftValue instanceof ArrayValueInterface && $rightValue instanceof ArrayValueInterface => $this->isArrayEqual($leftValue, $rightValue),
$leftValue instanceof ObjectValueInterface && $rightValue instanceof ObjectValueInterface => $this->isObjectEqual($leftValue, $rightValue),
default => false,
|