Skip to content

Mutation

Mutation #204

Triggered via schedule May 12, 2026 19:13
Status Success
Total duration 5m 48s
Artifacts

infection.yml

on: schedule
Matrix: infection
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Infection on PHP 8.4: src/Features/VerifyTrait.php#L45
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ if (!in_array($hashFunc, $this->getSupportedHashFunctions(), true)) { throw new ClientException( "Unsupported hash function: {$hashFunc}. " . - "Supported: " . implode(', ', $this->getSupportedHashFunctions()) + "Supported: " ); } }
Infection on PHP 8.4: src/Features/VerifyTrait.php#L45
Escaped Mutant for Mutator "Concat": @@ @@ { if (!in_array($hashFunc, $this->getSupportedHashFunctions(), true)) { throw new ClientException( - "Unsupported hash function: {$hashFunc}. " . - "Supported: " . implode(', ', $this->getSupportedHashFunctions()) + "Unsupported hash function: {$hashFunc}. " . implode(', ', $this->getSupportedHashFunctions()) . "Supported: " ); } }
Infection on PHP 8.4: src/Features/VerifyTrait.php#L45
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ { if (!in_array($hashFunc, $this->getSupportedHashFunctions(), true)) { throw new ClientException( - "Unsupported hash function: {$hashFunc}. " . - "Supported: " . implode(', ', $this->getSupportedHashFunctions()) + "Unsupported hash function: {$hashFunc}. " . implode(', ', $this->getSupportedHashFunctions()) ); } }
Infection on PHP 8.4: src/Features/VerifyTrait.php#L45
Escaped Mutant for Mutator "Concat": @@ @@ { if (!in_array($hashFunc, $this->getSupportedHashFunctions(), true)) { throw new ClientException( - "Unsupported hash function: {$hashFunc}. " . - "Supported: " . implode(', ', $this->getSupportedHashFunctions()) + "Supported: " . "Unsupported hash function: {$hashFunc}. " . implode(', ', $this->getSupportedHashFunctions()) ); } }
Infection on PHP 8.4: src/Features/PublishTrait.php#L231
Escaped Mutant for Mutator "NotIdentical": @@ @@ */ public function withRecentMerkleRoot(?string $recent): static { - if ($recent !== null) { + if ($recent === null) { $prefix = 'pkd-mr-v1:'; if (!str_starts_with($recent, $prefix)) { throw new ClientException(
Infection on PHP 8.4: src/Features/ProtocolTrait.php#L262
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ private function preamble(): string { $this->assertSecretKeySet(); - $this->fetchServerInfo(); + return $this->getRecentMerkleRoot(); } }
Infection on PHP 8.4: src/Features/ProtocolTrait.php#L261
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ */ private function preamble(): string { - $this->assertSecretKeySet(); + $this->fetchServerInfo(); return $this->getRecentMerkleRoot(); }
Infection on PHP 8.4: src/Features/FetchTrait.php#L206
Escaped Mutant for Mutator "Catch_": @@ @@ $body = $this->parseJsonResponse($auxDataResponse, 'fedi-e2ee:v1/api/actor/get-aux'); $this->assertKeysExist($body, ['aux-id', 'aux-type', 'aux-data', 'actor-id']); $typeValidator = $this->registry->lookup($body['aux-type']); - } catch (ClientException | ExtensionException) { + } catch (ClientException) { return null; } if (!$typeValidator->isValid($body['aux-data'])) {
Infection on PHP 8.4: src/Features/FetchTrait.php#L171
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ */ public function fetchAuxDataByID(string $actor, string $auxDataTypeID): ?AuxData { - $this->ensureHttpClientConfigured(); + $canonical = $this->canonicalize($actor); return $this->fetchAuxDataInternal($canonical, $auxDataTypeID); }
Infection on PHP 8.4: src/Features/FetchTrait.php#L77
Escaped Mutant for Mutator "ArrayOneItem": @@ @@ $pk->setMetadata($meta); $publicKeys[] = $pk; } - return $publicKeys; + return count($publicKeys) > 1 ? array_slice($publicKeys, 0, 1, true) : $publicKeys; } /**