Update dependency symfony/http-client to v7 #1424
continuous-integration.yaml
on: push
Matrix: php cs fixer
Matrix: mutation tests
Matrix: phpunit tests
Matrix: static analysis phpstan
Matrix: static analysis psalm
Annotations
2 warnings
mutation tests (locked, 8.2, ubuntu-latest):
src/PhraseProvider.php#L168
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
}
public function delete(TranslatorBagInterface $translatorBag): void
{
- $keys = [[]];
+ $keys = [];
foreach ($translatorBag->getCatalogues() as $catalogue) {
/** @var string $domain */
foreach ($catalogue->getDomains() as $domain) {
|
mutation tests (locked, 8.2, ubuntu-latest):
src/PhraseProvider.php#L253
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
}
private function createLocale(string $locale): void
{
- $response = $this->httpClient->request('POST', 'locales', ['body' => ['name' => $locale, 'code' => $locale, 'default' => $locale === $this->toPhraseLocale($this->defaultLocale)], 'headers' => ['Content-Type' => 'application/x-www-form-urlencoded']]);
+ $response = $this->httpClient->request('POST', 'locales', ['body' => ['name' => $locale, 'code' => $locale, 'default' => $locale === $this->toPhraseLocale($this->defaultLocale)], 'headers' => []]);
if (201 !== $statusCode = $response->getStatusCode()) {
$this->logger->error(\sprintf('Unable to create locale "%s" in phrase: "%s".', $locale, $response->getContent(false)));
$this->throwProviderException($statusCode, $response, 'Unable to create locale phrase.');
|