Replace data response by data stream (big refactoring) #390
Annotations
8 warnings
|
mutation / PHP 8.5-ubuntu-latest:
src/Formatter/XmlDataResponseFormatter.php#L246
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
}
if (is_float($value)) {
- return NumericHelper::normalize($value);
+
}
return (string) $value;
|
|
mutation / PHP 8.5-ubuntu-latest:
src/Formatter/XmlDataResponseFormatter.php#L107
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
private function buildXml(DOMDocument $dom, $element, mixed $data): void
{
if (empty($data)) {
- return;
+
}
if (is_array($data) || ($data instanceof Traversable && !($data instanceof XmlDataInterface))) {
|
|
mutation / PHP 8.5-ubuntu-latest:
src/DataResponse.php#L191
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
{
$new = clone $this;
$new->responseFormatter = $responseFormatter;
- $new->resetFormatted();
+
return $new;
}
|
|
mutation / PHP 8.5-ubuntu-latest:
src/DataResponse.php#L180
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
{
$new = clone $this;
$new->response = $this->response->withStatus($code, $reasonPhrase);
- $new->resetFormatted();
+
return $new;
}
|
|
mutation / PHP 8.5-ubuntu-latest:
src/DataResponse.php#L172
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
{
$new = clone $this;
$new->response = $this->response->withProtocolVersion($version);
- $new->resetFormatted();
+
return $new;
}
|
|
mutation / PHP 8.5-ubuntu-latest:
src/DataResponse.php#L156
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
{
$new = clone $this;
$new->response = $this->response->withHeader($name, $value);
- $new->resetFormatted();
+
return $new;
}
|
|
mutation / PHP 8.5-ubuntu-latest:
src/DataResponse.php#L145
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
{
$new = clone $this;
$new->response = $this->response->withBody($body);
- $new->resetFormatted();
+
$new->dataStream = $body;
$new->forcedBody = true;
$new->data = null;
|
|
mutation / PHP 8.5-ubuntu-latest:
src/DataResponse.php#L137
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
{
$new = clone $this;
$new->response = $this->response->withAddedHeader($name, $value);
- $new->resetFormatted();
+
return $new;
}
|