Bump phpstan/phpstan from 1.11.8 to 1.12.5 #325
Annotations
1 error and 18 warnings
codestyle
Process completed with exit code 1.
|
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/
|
codestyle
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
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/
|
phpstan
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
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/
|
tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, codecov/codecov-action@v1.0.14. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
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
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
mutation:
src/Exception/TokenizerError.php#L13
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
final public function __construct(\Graphpinator\Common\Location $location)
{
parent::__construct();
- $this->setLocation($location);
+
}
final public 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 = [];
|