OrderSortKeyword enum #629
Annotations
10 warnings
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Get Composer cache directory
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/Parsers/GroupKeywords.php#L46
Escaped Mutant for Mutator "LessThan":
--- Original
+++ New
@@ @@
* 1 -------------------[ ASC / DESC ]--------------------> 1
*/
$state = 0;
- for (; $list->idx < $list->count; ++$list->idx) {
+ for (; $list->idx <= $list->count; ++$list->idx) {
/**
* Token parsed at this moment.
*/
|
Infection:
src/Parsers/GroupKeywords.php#L58
Escaped Mutant for Mutator "LogicalOr":
--- Original
+++ New
@@ @@
break;
}
// Skipping whitespaces and comments.
- if ($token->type === TokenType::Whitespace || $token->type === TokenType::Comment) {
+ if ($token->type === TokenType::Whitespace && $token->type === TokenType::Comment) {
continue;
}
if ($state === 0) {
|
Infection:
src/Parsers/GroupKeywords.php#L64
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
}
if ($state === 0) {
$expr->expr = Expressions::parse($parser, $list);
- $state = 1;
+ $state = 2;
} else {
if ($token->type === TokenType::Keyword && ($token->keyword === 'ASC' || $token->keyword === 'DESC')) {
$expr->type = OrderSortKeyword::from($token->keyword);
|
Infection:
src/Parsers/GroupKeywords.php#L71
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
} else {
if ($token->type === TokenType::Keyword && ($token->keyword === 'ASC' || $token->keyword === 'DESC')) {
$expr->type = OrderSortKeyword::from($token->keyword);
- } elseif ($token->type === TokenType::Operator && $token->value === ',') {
+ } elseif ($token->type === TokenType::Operator || $token->value === ',') {
if (!empty($expr->expr)) {
$ret[] = $expr;
}
|
Infection:
src/Parsers/OrderKeywords.php#L46
Escaped Mutant for Mutator "LessThan":
--- Original
+++ New
@@ @@
* 1 -------------------[ ASC / DESC ]--------------------> 1
*/
$state = 0;
- for (; $list->idx < $list->count; ++$list->idx) {
+ for (; $list->idx <= $list->count; ++$list->idx) {
/**
* Token parsed at this moment.
*/
|
Infection:
src/Parsers/OrderKeywords.php#L58
Escaped Mutant for Mutator "LogicalOr":
--- Original
+++ New
@@ @@
break;
}
// Skipping whitespaces and comments.
- if ($token->type === TokenType::Whitespace || $token->type === TokenType::Comment) {
+ if ($token->type === TokenType::Whitespace && $token->type === TokenType::Comment) {
continue;
}
if ($state === 0) {
|
Infection:
src/Parsers/OrderKeywords.php#L64
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
}
if ($state === 0) {
$expr->expr = Expressions::parse($parser, $list);
- $state = 1;
+ $state = 2;
} else {
if ($token->type === TokenType::Keyword && ($token->keyword === 'ASC' || $token->keyword === 'DESC')) {
$expr->type = OrderSortKeyword::from($token->keyword);
|
Infection:
src/Parsers/OrderKeywords.php#L71
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
} else {
if ($token->type === TokenType::Keyword && ($token->keyword === 'ASC' || $token->keyword === 'DESC')) {
$expr->type = OrderSortKeyword::from($token->keyword);
- } elseif ($token->type === TokenType::Operator && $token->value === ',') {
+ } elseif ($token->type === TokenType::Operator || $token->value === ',') {
if (!empty($expr->expr)) {
$ret[] = $expr;
}
|
Loading