Merge pull request #19149 from MauricioFauth/response-renderer-disabl… #943
Annotations
11 warnings
Infection (8.2, ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Infection (8.2, ubuntu-latest):
src/Application.php#L106
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$requestHandler->add(new RequestProblemChecking($this->template, $this->responseFactory));
$requestHandler->add(new CurrentServerGlobalSetting($this->config));
$requestHandler->add(new ThemeInitialization());
- $requestHandler->add(new UrlRedirection($this->config, $this->template, $this->responseFactory));
+
$requestHandler->add(new SetupPageRedirection($this->config, $this->responseFactory));
$requestHandler->add(new MinimumCommonRedirection($this->config, $this->responseFactory));
$requestHandler->add(new LanguageAndThemeCookieSaving($this->config));
|
Infection (8.2, ubuntu-latest):
src/Controllers/LicenseController.php#L35
Escaped Mutant for Mutator "Foreach_":
--- Original
+++ New
@@ @@
public function __invoke(ServerRequest $request): Response
{
$response = $this->responseFactory->createResponse();
- foreach ($this->response->getHeader()->getHttpHeaders() as $name => $value) {
+ foreach ([] as $name => $value) {
$response = $response->withHeader($name, $value);
}
$filename = LICENSE_FILE;
|
Infection (8.2, ubuntu-latest):
src/Controllers/LicenseController.php#L55
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
$response = $response->withHeader('Content-Type', 'text/plain; charset=utf-8');
ob_start();
readfile($filename);
- $license = (string) ob_get_clean();
+ $license = ob_get_clean();
return $response->write($license);
}
}
|
Infection (8.2, ubuntu-latest):
src/Controllers/LintController.php#L73
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
foreach (Core::headerJSON() as $name => $value) {
$response = $response->withHeader($name, $value);
}
- return $response->write((string) json_encode($lints));
+ return $response->write(json_encode($lints));
}
}
|
Infection (8.2, ubuntu-latest):
src/Controllers/PhpInfoController.php#L49
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
}
ob_start();
phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES);
- $phpInfo = (string) ob_get_clean();
+ $phpInfo = ob_get_clean();
return $response->write($phpInfo);
}
}
|
Infection (8.2, ubuntu-latest):
src/Controllers/SchemaExportController.php#L62
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
return null;
}
$response = $this->responseFactory->createResponse();
- Core::downloadHeader($exportInfo['fileName'], $exportInfo['mediaType'], mb_strlen($exportInfo['fileData'], '8bit'));
+
return $response->write($exportInfo['fileData']);
}
}
|
Infection (8.2, ubuntu-latest):
src/Controllers/Table/GetFieldController.php#L94
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
/* Avoid corrupting data */
ini_set('url_rewriter.tags', '');
$response = $this->responseFactory->createResponse();
- Core::downloadHeader(Current::$table . '-' . $transformKey . '.bin', Mime::detect($result), mb_strlen($result, '8bit'));
+
return $response->write($result);
}
}
|
Infection (8.2, ubuntu-latest):
src/Controllers/VersionCheckController.php#L36
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
}
$versionDetails = $this->versionInformation->getLatestVersions();
if ($versionDetails === null) {
- return $response->write((string) json_encode([]));
+ return $response->write(json_encode([]));
}
$latestCompatible = $this->versionInformation->getLatestCompatibleVersion($versionDetails);
$version = '';
|
Infection (8.2, ubuntu-latest):
src/Controllers/VersionCheckController.php#L47
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
$version = $latestCompatible->version;
$date = $latestCompatible->date;
}
- return $response->write((string) json_encode(['version' => $version, 'date' => $date]));
+ return $response->write(json_encode(['version' => $version, 'date' => $date]));
}
}
|
Infection (8.2, ubuntu-latest):
src/UrlRedirector.php#L29
Escaped Mutant for Mutator "Foreach_":
--- Original
+++ New
@@ @@
public function redirect(mixed $urlParam): Response
{
$response = $this->responseFactory->createResponse();
- foreach ($this->response->getHeader()->getHttpHeaders() as $name => $value) {
+ foreach ([] as $name => $value) {
$response = $response->withHeader($name, $value);
}
$url = is_string($urlParam) ? $urlParam : '';
|