Add infection #231
Annotations
10 warnings
src/Soql/BoundValuesSeparator.php#L29
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
$values = [];
foreach ($boundValues as $parameter => $value) {
$parameter = sprintf(':%s', $parameter);
- if (!isset($types[$parameter])) {
+ if (isset($types[$parameter])) {
$types[$parameter] = ParameterType::STRING;
}
if (is_object($value) && method_exists($value, '__toString')) {
|
src/Soql/BoundValuesSeparator.php#L33
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
--- Original
+++ New
@@ @@
if (!isset($types[$parameter])) {
$types[$parameter] = ParameterType::STRING;
}
- if (is_object($value) && method_exists($value, '__toString')) {
+ if (is_object($value) && !method_exists($value, '__toString')) {
$value = (string) $value;
}
if (is_array($value)) {
|
src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
if ($this->isTransactionActive()) {
throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.');
}
- $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)];
+ $param = $identifier['Id'] ?? '/' . key($identifier) . $identifier[key($identifier)];
$this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers));
return 1;
}
|
src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
if ($this->isTransactionActive()) {
throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.');
}
- $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)];
+ $param = $identifier['Id'] ?? '/' . $identifier[key($identifier)];
$this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers));
return 1;
}
|
src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
if ($this->isTransactionActive()) {
throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.');
}
- $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)];
+ $param = $identifier['Id'] ?? key($identifier) . $identifier[key($identifier)];
$this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers));
return 1;
}
|
src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
if ($this->isTransactionActive()) {
throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.');
}
- $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)];
+ $param = $identifier['Id'] ?? key($identifier) . $identifier[key($identifier)] . '/';
$this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers));
return 1;
}
|
src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
if ($this->isTransactionActive()) {
throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.');
}
- $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)];
+ $param = $identifier['Id'] ?? key($identifier) . '/';
$this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers));
return 1;
}
|
src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
if ($this->isTransactionActive()) {
throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.');
}
- $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)];
+ $param = key($identifier) . '/' . $identifier[key($identifier)] ?? $identifier['Id'];
$this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers));
return 1;
}
|
src/Soql/ConnectionWrapper.php#L92
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
}
$param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)];
$this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers));
- return 1;
+ return 0;
}
/**
* {@inheritdoc}
|
src/Soql/ConnectionWrapper.php#L92
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
}
$param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)];
$this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers));
- return 1;
+ return 2;
}
/**
* {@inheritdoc}
|
The logs for this run have expired and are no longer available.
Loading