Merge pull request #166 from graphpql/dependabot/composer/phpunit/php… #314
Annotations
1 error and 18 warnings
codestyle
Process completed with exit code 1.
|
codestyle
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
codestyle
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
phpstan
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
phpstan
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
mutation
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
mutation
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
mutation:
src/Exception/TokenizerError.php#L13
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public final function __construct(\Graphpinator\Common\Location $location)
{
parent::__construct();
- $this->setLocation($location);
+
}
public final function isOutputable() : bool
{
|
mutation:
src/Tokenizer.php#L48
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
}
public function valid() : bool
{
- if (!$this->token instanceof Token || !\is_int($this->tokenStartIndex)) {
+ if (!true || !\is_int($this->tokenStartIndex)) {
return false;
}
if ($this->skipNotRelevant && $this->token->getType()->isIgnorable()) {
|
mutation:
src/Tokenizer.php#L48
Escaped Mutant for Mutator "LogicalOr":
--- Original
+++ New
@@ @@
}
public function valid() : bool
{
- if (!$this->token instanceof Token || !\is_int($this->tokenStartIndex)) {
+ if (!$this->token instanceof Token && !\is_int($this->tokenStartIndex)) {
return false;
}
if ($this->skipNotRelevant && $this->token->getType()->isIgnorable()) {
|
mutation:
src/Tokenizer.php#L279
Escaped Mutant for Mutator "Assignment":
--- Original
+++ New
@@ @@
if (\strlen($quotes) === 3) {
return $this->formatBlockString($value);
}
- $value .= $quotes;
+ $value = $quotes;
continue 2;
case '\\':
$this->source->next();
|
mutation:
src/Tokenizer.php#L291
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
if (\strlen($quotes) === 3) {
$value .= '"""';
} else {
- $value .= '\\' . $quotes;
+ $value .= $quotes . '\\';
}
continue 2;
default:
|
mutation:
src/Tokenizer.php#L291
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
if (\strlen($quotes) === 3) {
$value .= '"""';
} else {
- $value .= '\\' . $quotes;
+ $value .= '\\';
}
continue 2;
default:
|
mutation:
src/Tokenizer.php#L291
Escaped Mutant for Mutator "Assignment":
--- Original
+++ New
@@ @@
if (\strlen($quotes) === 3) {
$value .= '"""';
} else {
- $value .= '\\' . $quotes;
+ $value = '\\' . $quotes;
}
continue 2;
default:
|
mutation:
src/Tokenizer.php#L339
Escaped Mutant for Mutator "GreaterThan":
--- Original
+++ New
@@ @@
continue;
}
$whitespaceCount = \strlen($line) - \strlen($trim);
- if ($commonWhitespace === null || $commonWhitespace > $whitespaceCount) {
+ if ($commonWhitespace === null || $commonWhitespace >= $whitespaceCount) {
$commonWhitespace = $whitespaceCount;
}
}
|
mutation:
src/Tokenizer.php#L344
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
$commonWhitespace = $whitespaceCount;
}
}
- if (\in_array($commonWhitespace, [0, null], true)) {
+ if (\in_array($commonWhitespace, [-1, null], true)) {
return \implode(\PHP_EOL, $lines);
}
$formattedLines = [];
|
mutation:
src/Tokenizer.php#L344
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
$commonWhitespace = $whitespaceCount;
}
}
- if (\in_array($commonWhitespace, [0, null], true)) {
+ if (\in_array($commonWhitespace, [null], true)) {
return \implode(\PHP_EOL, $lines);
}
$formattedLines = [];
|
tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, codecov/codecov-action@v1.0.14. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, codecov/codecov-action@v1.0.14. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|