ci: drop psalm (#70) #205
Annotations
15 warnings
Infection
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: ramsey/composer-install@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Infection
The following actions uses node12 which is deprecated and will be forced to run on node16: ramsey/composer-install@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Infection
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Infection
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Infection
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Infection:
src/ClassExtractor.php#L34
Escaped Mutant for Mutator "LessThan":
--- Original
+++ New
@@ @@
$tokens = token_get_all($code);
$count = count($tokens);
foreach ($tokens as $i => $token) {
- if ($i < 2) {
+ if ($i <= 2) {
continue;
}
if ($token[0] === T_NAMESPACE) {
|
Infection:
src/ClassExtractor.php#L39
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
continue;
}
if ($token[0] === T_NAMESPACE) {
- for ($j = $i + 1; $j < $count; ++$j) {
+ for ($j = $i + 0; $j < $count; ++$j) {
if ($tokens[$j][0] === T_NAME_QUALIFIED) {
$namespace = $tokens[$j][1];
break;
|
Infection:
src/ClassExtractor.php#L39
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
continue;
}
if ($token[0] === T_NAMESPACE) {
- for ($j = $i + 1; $j < $count; ++$j) {
+ for ($j = $i + 2; $j < $count; ++$j) {
if ($tokens[$j][0] === T_NAME_QUALIFIED) {
$namespace = $tokens[$j][1];
break;
|
Infection:
src/ClassExtractor.php#L39
Escaped Mutant for Mutator "Plus":
--- Original
+++ New
@@ @@
continue;
}
if ($token[0] === T_NAMESPACE) {
- for ($j = $i + 1; $j < $count; ++$j) {
+ for ($j = $i - 1; $j < $count; ++$j) {
if ($tokens[$j][0] === T_NAME_QUALIFIED) {
$namespace = $tokens[$j][1];
break;
|
Infection:
src/ClassExtractor.php#L39
Escaped Mutant for Mutator "LessThan":
--- Original
+++ New
@@ @@
continue;
}
if ($token[0] === T_NAMESPACE) {
- for ($j = $i + 1; $j < $count; ++$j) {
+ for ($j = $i + 1; $j <= $count; ++$j) {
if ($tokens[$j][0] === T_NAME_QUALIFIED) {
$namespace = $tokens[$j][1];
break;
|
Infection:
src/ClassExtractor.php#L43
Escaped Mutant for Mutator "Break_":
--- Original
+++ New
@@ @@
for ($j = $i + 1; $j < $count; ++$j) {
if ($tokens[$j][0] === T_NAME_QUALIFIED) {
$namespace = $tokens[$j][1];
- break;
+ continue;
}
if ($tokens[$j][0] === T_STRING) {
$namespace .= '\\' . $tokens[$j][1];
|
Infection:
src/ClassExtractor.php#L46
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
$namespace = $tokens[$j][1];
break;
}
- if ($tokens[$j][0] === T_STRING) {
+ if ($tokens[$j][1] === T_STRING) {
$namespace .= '\\' . $tokens[$j][1];
continue;
}
|
Infection:
src/ClassExtractor.php#L46
Escaped Mutant for Mutator "Identical":
--- Original
+++ New
@@ @@
$namespace = $tokens[$j][1];
break;
}
- if ($tokens[$j][0] === T_STRING) {
+ if ($tokens[$j][0] !== T_STRING) {
$namespace .= '\\' . $tokens[$j][1];
continue;
}
|
Infection:
src/ClassExtractor.php#L52
Escaped Mutant for Mutator "LogicalOr":
--- Original
+++ New
@@ @@
$namespace .= '\\' . $tokens[$j][1];
continue;
}
- if ($tokens[$j] === '{' || $tokens[$j] === ';') {
+ if ($tokens[$j] === '{' && $tokens[$j] === ';') {
$namespace = ltrim($namespace, '\\');
break;
}
|
Infection:
src/ClassExtractor.php#L64
Escaped Mutant for Mutator "Minus":
--- Original
+++ New
@@ @@
}
continue;
}
- if ($tokens[$i - 2][0] !== T_CLASS || $tokens[$i - 1][0] !== T_WHITESPACE || $token[0] !== T_STRING) {
+ if ($tokens[$i - 2][0] !== T_CLASS || $tokens[$i + 1][0] !== T_WHITESPACE || $token[0] !== T_STRING) {
continue;
}
$className = $tokens[$i][1];
|