Skip to content

fix Undefined array key "\" #9

fix Undefined array key "\"

fix Undefined array key "\" #9

Triggered via push August 11, 2025 19:28
Status Failure
Total duration 1m 47s
Artifacts

test.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 30 warnings
PHP 8.4 test on ubuntu-24.04
Process completed with exit code 1.
PHP 8.2 test on ubuntu-24.04
Process completed with exit code 1.
PHP 8.3 test on ubuntu-24.04
Process completed with exit code 1.
PHP 8.3 test on ubuntu-24.04
The strategy configuration was canceled because "test.ubuntu-24_04_8_4" failed
PHP 8.1 test on ubuntu-24.04
The operation was canceled.
PHP 8.1 test on ubuntu-24.04
The strategy configuration was canceled because "test.ubuntu-24_04_8_4" failed
PHP 8.4 test on ubuntu-24.04: src/SQLParser.php#L192
Escaped Mutant for Mutator "LogicalAnd": @@ @@ } } if (count($temp)) { - $source_map_start_0 = isset($source_map[$start]) && isset($source_map[$start][0]) ? $source_map[$start][0] : null; + $source_map_start_0 = isset($source_map[$start]) || isset($source_map[$start][0]) ? $source_map[$start][0] : null; $source_map_start_i_0 = isset($source_map[$i]) && isset($source_map[$i][0]) ? $source_map[$i][0] : null; $source_map_start_i_1 = isset($source_map[$i]) && isset($source_map[$i][1]) ? $source_map[$i][1] : null; $statements[] = array("tuples" => $temp, "sql" => substr($sql, $source_map_start_0, $source_map_start_i_0 - $source_map_start_0 + $source_map_start_i_1));
PHP 8.4 test on ubuntu-24.04: src/SQLParser.php#L192
Escaped Mutant for Mutator "IncrementInteger": @@ @@ } } if (count($temp)) { - $source_map_start_0 = isset($source_map[$start]) && isset($source_map[$start][0]) ? $source_map[$start][0] : null; + $source_map_start_0 = isset($source_map[$start]) && isset($source_map[$start][1]) ? $source_map[$start][0] : null; $source_map_start_i_0 = isset($source_map[$i]) && isset($source_map[$i][0]) ? $source_map[$i][0] : null; $source_map_start_i_1 = isset($source_map[$i]) && isset($source_map[$i][1]) ? $source_map[$i][1] : null; $statements[] = array("tuples" => $temp, "sql" => substr($sql, $source_map_start_0, $source_map_start_i_0 - $source_map_start_0 + $source_map_start_i_1));
PHP 8.4 test on ubuntu-24.04: src/SQLParser.php#L166
Escaped Mutant for Mutator "PublicVisibility": @@ @@ } return $source_map; } - function walk($tokens, $sql, $source_map) + protected function walk($tokens, $sql, $source_map) { # # split into statements
PHP 8.4 test on ubuntu-24.04: src/SQLParser.php#L127
Escaped Mutant for Mutator "IncrementInteger": @@ @@ $q = $sql[$pos]; while ($c < strlen($sql)) { if ($sql[$c] == '\\') { - $c += 2; + $c += 3; continue; } if ($sql[$c] == $q) {
PHP 8.4 test on ubuntu-24.04: src/SQLParser.php#L123
Escaped Mutant for Mutator "IncrementInteger": @@ @@ # <character string literal> if ($sql[$pos] == "'" || $sql[$pos] == '"') { $str_start_pos = $pos; - $c = $pos + 1; + $c = $pos + 2; $q = $sql[$pos]; while ($c < strlen($sql)) { if ($sql[$c] == '\\') {
PHP 8.4 test on ubuntu-24.04: src/SQLParser.php#L94
Escaped Mutant for Mutator "IncrementInteger": @@ @@ } # backtick quoted field if (substr($sql, $pos, 1) == '`') { - $p2 = strpos($sql, "`", $pos + 1); + $p2 = strpos($sql, "`", $pos + 2); if ($p2 === false) { if ($this->throw_on_bad_syntax) { throw new SQLParserSyntaxException("Unterminated backtick at position {$pos}");
PHP 8.4 test on ubuntu-24.04: src/SQLParser.php#L78
Escaped Mutant for Mutator "IncrementInteger": @@ @@ } $pos = $len; } else { - $pos = $p2 + 2; + $pos = $p2 + 3; } continue; }
PHP 8.4 test on ubuntu-24.04: src/SQLParser.php#L75
Escaped Mutant for Mutator "Throw_": @@ @@ $p2 = strpos($sql, "*/", $pos); if ($p2 === false) { if ($this->throw_on_bad_syntax) { - throw new SQLParserSyntaxException("Unterminated comment at position {$pos}"); + new SQLParserSyntaxException("Unterminated comment at position {$pos}"); } $pos = $len; } else {
PHP 8.4 test on ubuntu-24.04: src/SQLParser.php#L68
Escaped Mutant for Mutator "DecrementInteger": @@ @@ } $pos = $len; } else { - $pos = $p2 + 1; + $pos = $p2 + 0; } continue; }
PHP 8.4 test on ubuntu-24.04: src/SQLParser.php#L65
Escaped Mutant for Mutator "Throw_": @@ @@ $p2 = strpos($sql, "\n", $pos); if ($p2 === false) { if ($this->throw_on_bad_syntax) { - throw new SQLParserSyntaxException("Unterminated comment at position {$pos}"); + new SQLParserSyntaxException("Unterminated comment at position {$pos}"); } $pos = $len; } else {
PHP 8.2 test on ubuntu-24.04: src/SQLParser.php#L192
Escaped Mutant for Mutator "LogicalAnd": @@ @@ } } if (count($temp)) { - $source_map_start_0 = isset($source_map[$start]) && isset($source_map[$start][0]) ? $source_map[$start][0] : null; + $source_map_start_0 = isset($source_map[$start]) || isset($source_map[$start][0]) ? $source_map[$start][0] : null; $source_map_start_i_0 = isset($source_map[$i]) && isset($source_map[$i][0]) ? $source_map[$i][0] : null; $source_map_start_i_1 = isset($source_map[$i]) && isset($source_map[$i][1]) ? $source_map[$i][1] : null; $statements[] = array("tuples" => $temp, "sql" => substr($sql, $source_map_start_0, $source_map_start_i_0 - $source_map_start_0 + $source_map_start_i_1));
PHP 8.2 test on ubuntu-24.04: src/SQLParser.php#L192
Escaped Mutant for Mutator "IncrementInteger": @@ @@ } } if (count($temp)) { - $source_map_start_0 = isset($source_map[$start]) && isset($source_map[$start][0]) ? $source_map[$start][0] : null; + $source_map_start_0 = isset($source_map[$start]) && isset($source_map[$start][1]) ? $source_map[$start][0] : null; $source_map_start_i_0 = isset($source_map[$i]) && isset($source_map[$i][0]) ? $source_map[$i][0] : null; $source_map_start_i_1 = isset($source_map[$i]) && isset($source_map[$i][1]) ? $source_map[$i][1] : null; $statements[] = array("tuples" => $temp, "sql" => substr($sql, $source_map_start_0, $source_map_start_i_0 - $source_map_start_0 + $source_map_start_i_1));
PHP 8.2 test on ubuntu-24.04: src/SQLParser.php#L166
Escaped Mutant for Mutator "PublicVisibility": @@ @@ } return $source_map; } - function walk($tokens, $sql, $source_map) + protected function walk($tokens, $sql, $source_map) { # # split into statements
PHP 8.2 test on ubuntu-24.04: src/SQLParser.php#L127
Escaped Mutant for Mutator "IncrementInteger": @@ @@ $q = $sql[$pos]; while ($c < strlen($sql)) { if ($sql[$c] == '\\') { - $c += 2; + $c += 3; continue; } if ($sql[$c] == $q) {
PHP 8.2 test on ubuntu-24.04: src/SQLParser.php#L123
Escaped Mutant for Mutator "IncrementInteger": @@ @@ # <character string literal> if ($sql[$pos] == "'" || $sql[$pos] == '"') { $str_start_pos = $pos; - $c = $pos + 1; + $c = $pos + 2; $q = $sql[$pos]; while ($c < strlen($sql)) { if ($sql[$c] == '\\') {
PHP 8.2 test on ubuntu-24.04: src/SQLParser.php#L94
Escaped Mutant for Mutator "IncrementInteger": @@ @@ } # backtick quoted field if (substr($sql, $pos, 1) == '`') { - $p2 = strpos($sql, "`", $pos + 1); + $p2 = strpos($sql, "`", $pos + 2); if ($p2 === false) { if ($this->throw_on_bad_syntax) { throw new SQLParserSyntaxException("Unterminated backtick at position {$pos}");
PHP 8.2 test on ubuntu-24.04: src/SQLParser.php#L78
Escaped Mutant for Mutator "IncrementInteger": @@ @@ } $pos = $len; } else { - $pos = $p2 + 2; + $pos = $p2 + 3; } continue; }
PHP 8.2 test on ubuntu-24.04: src/SQLParser.php#L75
Escaped Mutant for Mutator "Throw_": @@ @@ $p2 = strpos($sql, "*/", $pos); if ($p2 === false) { if ($this->throw_on_bad_syntax) { - throw new SQLParserSyntaxException("Unterminated comment at position {$pos}"); + new SQLParserSyntaxException("Unterminated comment at position {$pos}"); } $pos = $len; } else {
PHP 8.2 test on ubuntu-24.04: src/SQLParser.php#L68
Escaped Mutant for Mutator "DecrementInteger": @@ @@ } $pos = $len; } else { - $pos = $p2 + 1; + $pos = $p2 + 0; } continue; }
PHP 8.2 test on ubuntu-24.04: src/SQLParser.php#L65
Escaped Mutant for Mutator "Throw_": @@ @@ $p2 = strpos($sql, "\n", $pos); if ($p2 === false) { if ($this->throw_on_bad_syntax) { - throw new SQLParserSyntaxException("Unterminated comment at position {$pos}"); + new SQLParserSyntaxException("Unterminated comment at position {$pos}"); } $pos = $len; } else {
PHP 8.3 test on ubuntu-24.04: src/SQLParser.php#L192
Escaped Mutant for Mutator "LogicalAnd": @@ @@ } } if (count($temp)) { - $source_map_start_0 = isset($source_map[$start]) && isset($source_map[$start][0]) ? $source_map[$start][0] : null; + $source_map_start_0 = isset($source_map[$start]) || isset($source_map[$start][0]) ? $source_map[$start][0] : null; $source_map_start_i_0 = isset($source_map[$i]) && isset($source_map[$i][0]) ? $source_map[$i][0] : null; $source_map_start_i_1 = isset($source_map[$i]) && isset($source_map[$i][1]) ? $source_map[$i][1] : null; $statements[] = array("tuples" => $temp, "sql" => substr($sql, $source_map_start_0, $source_map_start_i_0 - $source_map_start_0 + $source_map_start_i_1));
PHP 8.3 test on ubuntu-24.04: src/SQLParser.php#L192
Escaped Mutant for Mutator "IncrementInteger": @@ @@ } } if (count($temp)) { - $source_map_start_0 = isset($source_map[$start]) && isset($source_map[$start][0]) ? $source_map[$start][0] : null; + $source_map_start_0 = isset($source_map[$start]) && isset($source_map[$start][1]) ? $source_map[$start][0] : null; $source_map_start_i_0 = isset($source_map[$i]) && isset($source_map[$i][0]) ? $source_map[$i][0] : null; $source_map_start_i_1 = isset($source_map[$i]) && isset($source_map[$i][1]) ? $source_map[$i][1] : null; $statements[] = array("tuples" => $temp, "sql" => substr($sql, $source_map_start_0, $source_map_start_i_0 - $source_map_start_0 + $source_map_start_i_1));
PHP 8.3 test on ubuntu-24.04: src/SQLParser.php#L166
Escaped Mutant for Mutator "PublicVisibility": @@ @@ } return $source_map; } - function walk($tokens, $sql, $source_map) + protected function walk($tokens, $sql, $source_map) { # # split into statements
PHP 8.3 test on ubuntu-24.04: src/SQLParser.php#L127
Escaped Mutant for Mutator "IncrementInteger": @@ @@ $q = $sql[$pos]; while ($c < strlen($sql)) { if ($sql[$c] == '\\') { - $c += 2; + $c += 3; continue; } if ($sql[$c] == $q) {
PHP 8.3 test on ubuntu-24.04: src/SQLParser.php#L123
Escaped Mutant for Mutator "IncrementInteger": @@ @@ # <character string literal> if ($sql[$pos] == "'" || $sql[$pos] == '"') { $str_start_pos = $pos; - $c = $pos + 1; + $c = $pos + 2; $q = $sql[$pos]; while ($c < strlen($sql)) { if ($sql[$c] == '\\') {
PHP 8.3 test on ubuntu-24.04: src/SQLParser.php#L94
Escaped Mutant for Mutator "IncrementInteger": @@ @@ } # backtick quoted field if (substr($sql, $pos, 1) == '`') { - $p2 = strpos($sql, "`", $pos + 1); + $p2 = strpos($sql, "`", $pos + 2); if ($p2 === false) { if ($this->throw_on_bad_syntax) { throw new SQLParserSyntaxException("Unterminated backtick at position {$pos}");
PHP 8.3 test on ubuntu-24.04: src/SQLParser.php#L78
Escaped Mutant for Mutator "IncrementInteger": @@ @@ } $pos = $len; } else { - $pos = $p2 + 2; + $pos = $p2 + 3; } continue; }
PHP 8.3 test on ubuntu-24.04: src/SQLParser.php#L75
Escaped Mutant for Mutator "Throw_": @@ @@ $p2 = strpos($sql, "*/", $pos); if ($p2 === false) { if ($this->throw_on_bad_syntax) { - throw new SQLParserSyntaxException("Unterminated comment at position {$pos}"); + new SQLParserSyntaxException("Unterminated comment at position {$pos}"); } $pos = $len; } else {
PHP 8.3 test on ubuntu-24.04: src/SQLParser.php#L68
Escaped Mutant for Mutator "DecrementInteger": @@ @@ } $pos = $len; } else { - $pos = $p2 + 1; + $pos = $p2 + 0; } continue; }
PHP 8.3 test on ubuntu-24.04: src/SQLParser.php#L65
Escaped Mutant for Mutator "Throw_": @@ @@ $p2 = strpos($sql, "\n", $pos); if ($p2 === false) { if ($this->throw_on_bad_syntax) { - throw new SQLParserSyntaxException("Unterminated comment at position {$pos}"); + new SQLParserSyntaxException("Unterminated comment at position {$pos}"); } $pos = $len; } else {