ci: use native Infection #200
Annotations
1 error and 15 warnings
Run Infection
Process completed with exit code 1.
|
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/.
|
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/
|
Install dependencies with Composer
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/
|
Install dependencies with Composer
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/
|
Install dependencies with Composer
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/
|
Run 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) {
|
Run 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;
|
Run 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;
|
Run 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;
|
Run 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;
|
Run 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];
|
Run 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;
}
|
Run 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;
}
|
Run 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;
}
|
Run 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];
|
Loading