build #164
Annotations
11 warnings
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
infection:
src/CfdiToDataNode.php#L94
Escaped Mutant for Mutator "Break_":
--- Original
+++ New
@@ @@
$parentsStack = [];
for ($current = $element; null !== $current; $current = $current->parentNode) {
if ($namespace !== $current->namespaceURI) {
- break;
+ continue;
}
$parentsStack[] = $current->localName;
}
|
infection:
src/CfdiToDataNode.php#L108
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
$values = [];
foreach ($element->childNodes as $childElement) {
if (!$childElement instanceof DOMText) {
- continue;
+ break;
}
$values[] = $childElement->wholeText;
}
|
infection:
src/CfdiToDataNode.php#L112
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
}
$values[] = $childElement->wholeText;
}
- return (string) preg_replace(['/\\s+/', '/^ +/', '/ +$/'], [' ', '', ''], implode('', $values));
+ return preg_replace(['/\\s+/', '/^ +/', '/ +$/'], [' ', '', ''], implode('', $values));
}
}
|
infection:
src/Factory.php#L46
Escaped Mutant for Mutator "Catch_":
--- Original
+++ New
@@ @@
}
try {
$unboundedOccursPaths = $this->createUnboundedOccursPathsUsingJsonSource($contents);
- } catch (JsonException|LogicException $exception) {
+ } catch (JsonException $exception) {
throw new LogicException("The file {$sourceFile} has invalid contents", 0, $exception);
}
return $unboundedOccursPaths;
|
infection:
src/Factory.php#L47
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
try {
$unboundedOccursPaths = $this->createUnboundedOccursPathsUsingJsonSource($contents);
} catch (JsonException|LogicException $exception) {
- throw new LogicException("The file {$sourceFile} has invalid contents", 0, $exception);
+ throw new LogicException("The file {$sourceFile} has invalid contents", -1, $exception);
}
return $unboundedOccursPaths;
}
|
infection:
src/Factory.php#L47
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
try {
$unboundedOccursPaths = $this->createUnboundedOccursPathsUsingJsonSource($contents);
} catch (JsonException|LogicException $exception) {
- throw new LogicException("The file {$sourceFile} has invalid contents", 0, $exception);
+ throw new LogicException("The file {$sourceFile} has invalid contents", 1, $exception);
}
return $unboundedOccursPaths;
}
|
infection:
src/Factory.php#L60
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
*/
public function createUnboundedOccursPathsUsingJsonSource(string $contents) : UnboundedOccursPaths
{
- $sourcePaths = json_decode($contents, true, 512, JSON_THROW_ON_ERROR);
+ $sourcePaths = json_decode($contents, true, 511, JSON_THROW_ON_ERROR);
if (!is_array($sourcePaths)) {
throw new LogicException('JSON does not contains an array of entries');
}
|
infection:
src/Factory.php#L60
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
*/
public function createUnboundedOccursPathsUsingJsonSource(string $contents) : UnboundedOccursPaths
{
- $sourcePaths = json_decode($contents, true, 512, JSON_THROW_ON_ERROR);
+ $sourcePaths = json_decode($contents, true, 513, JSON_THROW_ON_ERROR);
if (!is_array($sourcePaths)) {
throw new LogicException('JSON does not contains an array of entries');
}
|
infection:
src/Nodes/Node.php#L50
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
{
return $this->path;
}
- public function getValue() : string
+ protected function getValue() : string
{
return $this->value;
}
|
infection:
src/XsdMaxOccurs/Finder.php#L46
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
$xpath->registerNamespace('x', self::NS_XMLSCHEMA);
$nodes = $xpath->query($query) ?: new DOMNodeList();
foreach ($nodes as $node) {
- if ($node instanceof DOMElement) {
+ if (true) {
$paths[] = $this->obtainPathForElement($node);
}
}
|
The logs for this run have expired and are no longer available.
Loading