Skip to content
Triggered via schedule December 27, 2023 00:56
Status Success
Total duration 1m 18s
Artifacts

ci.yml

on: schedule
Fit to window
Zoom out
Zoom in

Annotations

30 warnings
PHP 8.1: 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()); }
PHP 8.1: 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()); }
PHP 8.1: 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 {
PHP 8.1: 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) {
PHP 8.1: 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) {
PHP 8.1: 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 {
PHP 8.1: 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); }
PHP 8.1: 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 . '&' : '';
PHP 8.1: 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); }
PHP 8.1: 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)); } }
PHP 8.2: 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()); }
PHP 8.2: 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()); }
PHP 8.2: 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 {
PHP 8.2: 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) {
PHP 8.2: 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) {
PHP 8.2: 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 {
PHP 8.2: 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); }
PHP 8.2: 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 . '&' : '';
PHP 8.2: 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); }
PHP 8.2: 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)); } }
PHP 8.3: 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()); }
PHP 8.3: 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()); }
PHP 8.3: 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 {
PHP 8.3: 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) {
PHP 8.3: 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) {
PHP 8.3: 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 {
PHP 8.3: 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); }
PHP 8.3: 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 . '&' : '';
PHP 8.3: 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); }
PHP 8.3: 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)); } }