CI #276
Annotations
10 warnings
composer test:
src/Decoder/JsonTypeDecoder.php#L24
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
public function decode(string $data) : array
{
try {
- $decoded = json_decode($data, true, 512, JSON_THROW_ON_ERROR);
+ $decoded = json_decode($data, true, 511, JSON_THROW_ON_ERROR);
} catch (\Exception $e) {
throw RuntimeException::createNotParsable($this->getContentType(), $e->getMessage());
}
|
composer test:
src/Decoder/JsonTypeDecoder.php#L24
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
public function decode(string $data) : array
{
try {
- $decoded = json_decode($data, true, 512, JSON_THROW_ON_ERROR);
+ $decoded = json_decode($data, true, 513, JSON_THROW_ON_ERROR);
} catch (\Exception $e) {
throw RuntimeException::createNotParsable($this->getContentType(), $e->getMessage());
}
|
composer test:
src/Decoder/JsonxTypeDecoder.php#L119
Escaped Mutant for Mutator "BitwiseOr":
--- Original
+++ New
@@ @@
}
private function decodeStringNode(\DOMNode $node) : string
{
- return html_entity_decode($node->nodeValue, ENT_COMPAT | ENT_XML1, 'UTF-8');
+ return html_entity_decode($node->nodeValue, ENT_COMPAT & ENT_XML1, 'UTF-8');
}
private function decodeNumberNode(\DOMNode $node) : float|int
{
|
composer test:
src/Encoder/JsonxTypeEncoder.php#L65
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
if (self::DATATYPE_OBJECT === $subValueType) {
$subNode = $this->createObjectNode($document, $subValue, (string) $subName);
} elseif (self::DATATYPE_ARRAY === $subValueType) {
- $subNode = $this->createArrayNode($document, $subValue, (string) $subName);
+ $subNode = $this->createArrayNode($document, $subValue, $subName);
} elseif (self::DATATYPE_BOOLEAN === $subValueType) {
$subNode = $this->createBooleanNode($document, $subValue, (string) $subName);
} elseif (self::DATATYPE_STRING === $subValueType) {
|
composer test:
src/Encoder/JsonxTypeEncoder.php#L67
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
} elseif (self::DATATYPE_ARRAY === $subValueType) {
$subNode = $this->createArrayNode($document, $subValue, (string) $subName);
} elseif (self::DATATYPE_BOOLEAN === $subValueType) {
- $subNode = $this->createBooleanNode($document, $subValue, (string) $subName);
+ $subNode = $this->createBooleanNode($document, $subValue, $subName);
} elseif (self::DATATYPE_STRING === $subValueType) {
$subNode = $this->createStringNode($document, $subValue, (string) $subName);
} elseif (self::DATATYPE_NUMBER === $subValueType) {
|
composer test:
src/Encoder/JsonxTypeEncoder.php#L69
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
} elseif (self::DATATYPE_BOOLEAN === $subValueType) {
$subNode = $this->createBooleanNode($document, $subValue, (string) $subName);
} elseif (self::DATATYPE_STRING === $subValueType) {
- $subNode = $this->createStringNode($document, $subValue, (string) $subName);
+ $subNode = $this->createStringNode($document, $subValue, $subName);
} elseif (self::DATATYPE_NUMBER === $subValueType) {
$subNode = $this->createNumberNode($document, $subValue, (string) $subName);
} else {
|
composer test:
src/Encoder/JsonxTypeEncoder.php#L73
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
} elseif (self::DATATYPE_NUMBER === $subValueType) {
$subNode = $this->createNumberNode($document, $subValue, (string) $subName);
} else {
- $subNode = $this->createNullNode($document, (string) $subName);
+ $subNode = $this->createNullNode($document, $subName);
}
$node->appendChild($subNode);
}
|
composer test:
src/Encoder/UrlEncodedTypeEncoder.php#L33
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
if (null === $value || [] === $value) {
continue;
}
- $subPath = '' !== $path ? $path . '[' . $key . ']' : (string) $key;
+ $subPath = '' !== $path ? $path . '[' . $key . ']' : $key;
if (\is_array($value)) {
$queryPart = $this->buildQuery($value, $subPath);
$query .= '' !== $queryPart ? $queryPart . '&' : '';
|
composer test:
src/Encoder/XmlTypeEncoder.php#L11
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
final class XmlTypeEncoder implements TypeEncoderInterface
{
private JsonxTypeEncoder $jsonxTypeEncoder;
- public function __construct(bool $prettyPrint = false)
+ public function __construct(bool $prettyPrint = true)
{
$this->jsonxTypeEncoder = new JsonxTypeEncoder($prettyPrint);
}
|
composer test:
src/Encoder/YamlTypeEncoder.php#L21
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
*/
public function encode(array $data) : string
{
- return trim(Yaml::dump($data, 10, 4));
+ return trim(Yaml::dump($data, 9, 4));
}
}
|
The logs for this run have expired and are no longer available.
Loading