Skip to content

fix: remove ID invariant check in update method #253

fix: remove ID invariant check in update method

fix: remove ID invariant check in update method #253

Triggered via push September 23, 2023 08:59
Status Success
Total duration 1m 19s
Artifacts

ci.yml

on: push
Matrix: CI
Fit to window
Zoom out
Zoom in

Annotations

40 warnings
CI (8.2, normal): src/Soql/ConnectionWrapper.php#L118
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - $responseBody = json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR); + $responseBody = json_decode($response->getBody()->getContents(), true, 511, JSON_THROW_ON_ERROR); if ($responseBody['success'] !== true) { throw OperationFailed::insertFailed($data); }
CI (8.2, normal): src/Soql/ConnectionWrapper.php#L118
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - $responseBody = json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR); + $responseBody = json_decode($response->getBody()->getContents(), true, 513, JSON_THROW_ON_ERROR); if ($responseBody['success'] !== true) { throw OperationFailed::insertFailed($data); }
CI (8.2, normal): src/Soql/ConnectionWrapper.php#L151
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; $request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR)); if ($this->isTransactionActive()) { - $this->addToBatchList($request, $refs); + return 1; } $response = $this->send($request);
CI (8.2, normal): src/Soql/ConnectionWrapper.php#L153
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ $request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR)); if ($this->isTransactionActive()) { $this->addToBatchList($request, $refs); - return 1; + return 0; } $response = $this->send($request); if ($response->getStatusCode() !== 204) {
CI (8.2, normal): src/Soql/ConnectionWrapper.php#L153
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ $request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR)); if ($this->isTransactionActive()) { $this->addToBatchList($request, $refs); - return 1; + return 2; } $response = $this->send($request); if ($response->getStatusCode() !== 204) {
CI (8.2, normal): src/Soql/ConnectionWrapper.php#L153
Escaped Mutant for Mutator "IntegerNegation": --- Original +++ New @@ @@ $request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR)); if ($this->isTransactionActive()) { $this->addToBatchList($request, $refs); - return 1; + return -1; } $response = $this->send($request); if ($response->getStatusCode() !== 204) {
CI (8.2, normal): src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - if (!in_array($response->getStatusCode(), [200, 201, 204])) { + if (!in_array($response->getStatusCode(), [199, 201, 204])) { throw OperationFailed::upsertFailed($data); } return 1;
CI (8.2, normal): src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - if (!in_array($response->getStatusCode(), [200, 201, 204])) { + if (!in_array($response->getStatusCode(), [201, 201, 204])) { throw OperationFailed::upsertFailed($data); } return 1;
CI (8.2, normal): src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - if (!in_array($response->getStatusCode(), [200, 201, 204])) { + if (!in_array($response->getStatusCode(), [200, 201, 203])) { throw OperationFailed::upsertFailed($data); } return 1;
CI (8.2, normal): src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - if (!in_array($response->getStatusCode(), [200, 201, 204])) { + if (!in_array($response->getStatusCode(), [200, 201, 205])) { throw OperationFailed::upsertFailed($data); } return 1;
CI (8.1, normal): src/Soql/ConnectionWrapper.php#L118
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - $responseBody = json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR); + $responseBody = json_decode($response->getBody()->getContents(), true, 511, JSON_THROW_ON_ERROR); if ($responseBody['success'] !== true) { throw OperationFailed::insertFailed($data); }
CI (8.1, normal): src/Soql/ConnectionWrapper.php#L118
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - $responseBody = json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR); + $responseBody = json_decode($response->getBody()->getContents(), true, 513, JSON_THROW_ON_ERROR); if ($responseBody['success'] !== true) { throw OperationFailed::insertFailed($data); }
CI (8.1, normal): src/Soql/ConnectionWrapper.php#L151
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; $request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR)); if ($this->isTransactionActive()) { - $this->addToBatchList($request, $refs); + return 1; } $response = $this->send($request);
CI (8.1, normal): src/Soql/ConnectionWrapper.php#L153
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ $request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR)); if ($this->isTransactionActive()) { $this->addToBatchList($request, $refs); - return 1; + return 0; } $response = $this->send($request); if ($response->getStatusCode() !== 204) {
CI (8.1, normal): src/Soql/ConnectionWrapper.php#L153
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ $request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR)); if ($this->isTransactionActive()) { $this->addToBatchList($request, $refs); - return 1; + return 2; } $response = $this->send($request); if ($response->getStatusCode() !== 204) {
CI (8.1, normal): src/Soql/ConnectionWrapper.php#L153
Escaped Mutant for Mutator "IntegerNegation": --- Original +++ New @@ @@ $request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR)); if ($this->isTransactionActive()) { $this->addToBatchList($request, $refs); - return 1; + return -1; } $response = $this->send($request); if ($response->getStatusCode() !== 204) {
CI (8.1, normal): src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - if (!in_array($response->getStatusCode(), [200, 201, 204])) { + if (!in_array($response->getStatusCode(), [199, 201, 204])) { throw OperationFailed::upsertFailed($data); } return 1;
CI (8.1, normal): src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - if (!in_array($response->getStatusCode(), [200, 201, 204])) { + if (!in_array($response->getStatusCode(), [201, 201, 204])) { throw OperationFailed::upsertFailed($data); } return 1;
CI (8.1, normal): src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - if (!in_array($response->getStatusCode(), [200, 201, 204])) { + if (!in_array($response->getStatusCode(), [200, 201, 203])) { throw OperationFailed::upsertFailed($data); } return 1;
CI (8.1, normal): src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - if (!in_array($response->getStatusCode(), [200, 201, 204])) { + if (!in_array($response->getStatusCode(), [200, 201, 205])) { throw OperationFailed::upsertFailed($data); } return 1;
CI (8.1, authoritative): src/Soql/ConnectionWrapper.php#L118
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - $responseBody = json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR); + $responseBody = json_decode($response->getBody()->getContents(), true, 511, JSON_THROW_ON_ERROR); if ($responseBody['success'] !== true) { throw OperationFailed::insertFailed($data); }
CI (8.1, authoritative): src/Soql/ConnectionWrapper.php#L118
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - $responseBody = json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR); + $responseBody = json_decode($response->getBody()->getContents(), true, 513, JSON_THROW_ON_ERROR); if ($responseBody['success'] !== true) { throw OperationFailed::insertFailed($data); }
CI (8.1, authoritative): src/Soql/ConnectionWrapper.php#L151
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; $request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR)); if ($this->isTransactionActive()) { - $this->addToBatchList($request, $refs); + return 1; } $response = $this->send($request);
CI (8.1, authoritative): src/Soql/ConnectionWrapper.php#L153
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ $request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR)); if ($this->isTransactionActive()) { $this->addToBatchList($request, $refs); - return 1; + return 0; } $response = $this->send($request); if ($response->getStatusCode() !== 204) {
CI (8.1, authoritative): src/Soql/ConnectionWrapper.php#L153
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ $request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR)); if ($this->isTransactionActive()) { $this->addToBatchList($request, $refs); - return 1; + return 2; } $response = $this->send($request); if ($response->getStatusCode() !== 204) {
CI (8.1, authoritative): src/Soql/ConnectionWrapper.php#L153
Escaped Mutant for Mutator "IntegerNegation": --- Original +++ New @@ @@ $request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR)); if ($this->isTransactionActive()) { $this->addToBatchList($request, $refs); - return 1; + return -1; } $response = $this->send($request); if ($response->getStatusCode() !== 204) {
CI (8.1, authoritative): src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - if (!in_array($response->getStatusCode(), [200, 201, 204])) { + if (!in_array($response->getStatusCode(), [199, 201, 204])) { throw OperationFailed::upsertFailed($data); } return 1;
CI (8.1, authoritative): src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - if (!in_array($response->getStatusCode(), [200, 201, 204])) { + if (!in_array($response->getStatusCode(), [201, 201, 204])) { throw OperationFailed::upsertFailed($data); } return 1;
CI (8.1, authoritative): src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - if (!in_array($response->getStatusCode(), [200, 201, 204])) { + if (!in_array($response->getStatusCode(), [200, 201, 203])) { throw OperationFailed::upsertFailed($data); } return 1;
CI (8.1, authoritative): src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - if (!in_array($response->getStatusCode(), [200, 201, 204])) { + if (!in_array($response->getStatusCode(), [200, 201, 205])) { throw OperationFailed::upsertFailed($data); } return 1;
CI (8.2, authoritative): src/Soql/ConnectionWrapper.php#L118
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - $responseBody = json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR); + $responseBody = json_decode($response->getBody()->getContents(), true, 511, JSON_THROW_ON_ERROR); if ($responseBody['success'] !== true) { throw OperationFailed::insertFailed($data); }
CI (8.2, authoritative): src/Soql/ConnectionWrapper.php#L118
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - $responseBody = json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR); + $responseBody = json_decode($response->getBody()->getContents(), true, 513, JSON_THROW_ON_ERROR); if ($responseBody['success'] !== true) { throw OperationFailed::insertFailed($data); }
CI (8.2, authoritative): src/Soql/ConnectionWrapper.php#L151
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; $request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR)); if ($this->isTransactionActive()) { - $this->addToBatchList($request, $refs); + return 1; } $response = $this->send($request);
CI (8.2, authoritative): src/Soql/ConnectionWrapper.php#L153
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ $request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR)); if ($this->isTransactionActive()) { $this->addToBatchList($request, $refs); - return 1; + return 0; } $response = $this->send($request); if ($response->getStatusCode() !== 204) {
CI (8.2, authoritative): src/Soql/ConnectionWrapper.php#L153
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ $request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR)); if ($this->isTransactionActive()) { $this->addToBatchList($request, $refs); - return 1; + return 2; } $response = $this->send($request); if ($response->getStatusCode() !== 204) {
CI (8.2, authoritative): src/Soql/ConnectionWrapper.php#L153
Escaped Mutant for Mutator "IntegerNegation": --- Original +++ New @@ @@ $request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR)); if ($this->isTransactionActive()) { $this->addToBatchList($request, $refs); - return 1; + return -1; } $response = $this->send($request); if ($response->getStatusCode() !== 204) {
CI (8.2, authoritative): src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - if (!in_array($response->getStatusCode(), [200, 201, 204])) { + if (!in_array($response->getStatusCode(), [199, 201, 204])) { throw OperationFailed::upsertFailed($data); } return 1;
CI (8.2, authoritative): src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - if (!in_array($response->getStatusCode(), [200, 201, 204])) { + if (!in_array($response->getStatusCode(), [201, 201, 204])) { throw OperationFailed::upsertFailed($data); } return 1;
CI (8.2, authoritative): src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - if (!in_array($response->getStatusCode(), [200, 201, 204])) { + if (!in_array($response->getStatusCode(), [200, 201, 203])) { throw OperationFailed::upsertFailed($data); } return 1;
CI (8.2, authoritative): src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - if (!in_array($response->getStatusCode(), [200, 201, 204])) { + if (!in_array($response->getStatusCode(), [200, 201, 205])) { throw OperationFailed::upsertFailed($data); } return 1;