ci: test on php 8.4 (#76) #230
Annotations
15 warnings
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 following actions use a deprecated Node.js version and will be forced to run on node20: ramsey/composer-install@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-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":
@@ @@
$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":
@@ @@
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":
@@ @@
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":
@@ @@
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":
@@ @@
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_":
@@ @@
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":
@@ @@
$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":
@@ @@
$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":
@@ @@
$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":
@@ @@
}
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];
|