Skip to content

Add --ignore-platform-req=php to composer install. #81

Add --ignore-platform-req=php to composer install.

Add --ignore-platform-req=php to composer install. #81

Triggered via push December 3, 2023 09:54
Status Success
Total duration 37s
Artifacts
Running mutant tests
28s
Running mutant tests
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
Running mutant tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Running mutant tests: src/Helper/ToStringHelper.php#L33
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ } return false; } - public static function mustLabelBeEscaped(string $string) : bool + protected static function mustLabelBeEscaped(string $string) : bool { // if string starts with digit if (1 === preg_match('/^\\d/', $string)) {
Running mutant tests: src/Helper/ToStringHelper.php#L36
Escaped Mutant for Mutator "PregMatchRemoveCaret": --- Original +++ New @@ @@ public static function mustLabelBeEscaped(string $string) : bool { // if string starts with digit - if (1 === preg_match('/^\\d/', $string)) { + if (1 === preg_match('/\\d/', $string)) { return true; } // if string contains characters which are not alphanumeric or part of selective whitelisted characters
Running mutant tests: src/Helper/ToStringHelper.php#L92
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ * * @see https://stackoverflow.com/a/173479 */ - public static function isArrayAssociate(array $array) : bool + protected static function isArrayAssociate(array $array) : bool { if ([] === $array) { return false;
Running mutant tests: src/Helper/ToStringHelper.php#L231
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ if (($startNode = $relation->getStartNode()) === null) { throw new InvalidArgumentException('Start node can not be null'); } - $parts[] = self::nodeToString($startNode, true); + $parts[] = self::nodeToString($startNode, false); $parts[] = '-'; } $relationParts = [];
Running mutant tests: src/Helper/ToStringHelper.php#L244
Escaped Mutant for Mutator "GreaterThan": --- Original +++ New @@ @@ $properties = $relation->getIdentifiers(); } $propertyString = self::propertiesToString($properties); - if (strlen($propertyString) > 0) { + if (strlen($propertyString) >= 0) { $relationParts[] = sprintf("{%s}", $propertyString); } $parts[] = sprintf("[%s]", implode(' ', $relationParts));
Running mutant tests: src/Helper/ToStringHelper.php#L254
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ throw new InvalidArgumentException('End node can not be null'); } $parts[] = '->'; - $parts[] = self::nodeToString($endNode, true); + $parts[] = self::nodeToString($endNode, false); } return implode('', $parts); }
Running mutant tests: src/Type/Node.php#L85
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ if (!$endNode) { throw new InvalidArgumentException("End node must be set"); } - $ownIdentifyingString = ToStringHelper::nodeToString($this, true); + $ownIdentifyingString = ToStringHelper::nodeToString($this, false); if (ToStringHelper::nodeToString($startNode, true) !== $ownIdentifyingString && ToStringHelper::nodeToString($endNode, true) !== $ownIdentifyingString) { throw new InvalidArgumentException("Adding a relation to a node requires that either the start node or the end node must be the same as the node itself."); }
Running mutant tests: src/Type/Node.php#L86
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ throw new InvalidArgumentException("End node must be set"); } $ownIdentifyingString = ToStringHelper::nodeToString($this, true); - if (ToStringHelper::nodeToString($startNode, true) !== $ownIdentifyingString && ToStringHelper::nodeToString($endNode, true) !== $ownIdentifyingString) { + if (ToStringHelper::nodeToString($startNode, false) !== $ownIdentifyingString && ToStringHelper::nodeToString($endNode, true) !== $ownIdentifyingString) { throw new InvalidArgumentException("Adding a relation to a node requires that either the start node or the end node must be the same as the node itself."); } $this->relations[] = $relation;
Running mutant tests: src/Type/Node.php#L87
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ throw new InvalidArgumentException("End node must be set"); } $ownIdentifyingString = ToStringHelper::nodeToString($this, true); - if (ToStringHelper::nodeToString($startNode, true) !== $ownIdentifyingString && ToStringHelper::nodeToString($endNode, true) !== $ownIdentifyingString) { + if (ToStringHelper::nodeToString($startNode, true) !== $ownIdentifyingString && ToStringHelper::nodeToString($endNode, false) !== $ownIdentifyingString) { throw new InvalidArgumentException("Adding a relation to a node requires that either the start node or the end node must be the same as the node itself."); } $this->relations[] = $relation;
Running mutant tests: src/Type/Node.php#L118
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ */ public function hasRelation(RelationInterface $relation) : bool { - $relationIdentifyingString = ToStringHelper::relationToString($relation, identifying: true); + $relationIdentifyingString = ToStringHelper::relationToString($relation, identifying: false); foreach ($this->relations as $tmpRelation) { if (ToStringHelper::relationToString($tmpRelation, identifying: true) === $relationIdentifyingString) { return true;