Add --ignore-platform-req=php
to composer install.
#81
Annotations
11 warnings
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/
|
Run composer test:mutant:
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)) {
|
Run composer test:mutant:
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
|
Run composer test:mutant:
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;
|
Run composer test:mutant:
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 = [];
|
Run composer test:mutant:
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));
|
Run composer test:mutant:
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);
}
|
Run composer test:mutant:
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.");
}
|
Run composer test:mutant:
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;
|
Run composer test:mutant:
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;
|
Run composer test:mutant:
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;
|
The logs for this run have expired and are no longer available.
Loading