Lock file maintenance #1522
Annotations
7 warnings
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run vendor/bin/infection --configuration=infection-custom.json:
src/BaseClient.php#L78
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$body = Json::decodeToArray((string) $response->getBody());
$list = [];
foreach ($body as $item) {
- Assert::isArray($item);
+
$definition = Definition::fromArray($item);
$list[$definition->id()] = $definition;
}
|
Run vendor/bin/infection --configuration=infection-custom.json:
src/BaseClient.php#L202
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$body = Json::decodeToArray((string) $response->getBody());
$list = [];
foreach ($body as $item) {
- Assert::isArray($item);
+
$definition = SharedSlice::fromArray($item);
$list[$definition->id] = $definition;
}
|
Run vendor/bin/infection --configuration=infection-custom.json:
src/BaseClient.php#L257
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
try {
$current = $this->getSharedSlice($slice->id);
} catch (DefinitionNotFound) {
- $this->createSharedSlice($slice);
+
return;
}
if ($slice->equals($current)) {
|
Run vendor/bin/infection --configuration=infection-custom.json:
src/Json.php#L28
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
public static function decodeToArray(string $json) : array
{
try {
- $decoded = json_decode($json, true, 512, JSON_THROW_ON_ERROR);
+ $decoded = json_decode($json, true, 511, JSON_THROW_ON_ERROR);
Assert::isArray($decoded);
return $decoded;
} catch (JsonException $e) {
|
Run vendor/bin/infection --configuration=infection-custom.json:
src/SharedSlice.php#L33
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
/** @param array<array-key, mixed> $payload */
public static function fromArray(array $payload) : self
{
- Assert::keyExists($payload, 'id');
+
Assert::stringNotEmpty($payload['id']);
return new self($payload['id'], json_encode($payload));
}
|
Run vendor/bin/infection --configuration=infection-custom.json:
src/SharedSlice.php#L34
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public static function fromArray(array $payload) : self
{
Assert::keyExists($payload, 'id');
- Assert::stringNotEmpty($payload['id']);
+
return new self($payload['id'], json_encode($payload));
}
public function equals(SharedSlice $other) : bool
|
Loading