Custom Parser #31
Annotations
2 errors and 10 warnings
|
|
src/Json.php#L493
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
if ($result !== 1) {
continue;
}
- $useStatements[$matches['alias'] ?? $matches['class']] = $matches['ns'] . $matches['class'];
+ $useStatements[$matches['alias'] ?? $matches['class']] = $matches['class'] . $matches['ns'];
}
return $useStatements;
}
|
src/Json.php#L493
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
if ($result !== 1) {
continue;
}
- $useStatements[$matches['alias'] ?? $matches['class']] = $matches['ns'] . $matches['class'];
+ $useStatements[$matches['class'] ?? $matches['alias']] = $matches['ns'] . $matches['class'];
}
return $useStatements;
}
|
src/Json.php#L493
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
if ($result !== 1) {
continue;
}
- $useStatements[$matches['alias'] ?? $matches['class']] = $matches['ns'] . $matches['class'];
+ $useStatements[$matches['alias'] ?? $matches['class']] = $matches['class'];
}
return $useStatements;
}
|
src/Parser/Parser.php#L46
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
{
$token = current($this->tokens);
if ($token === false) {
- throw SyntaxError::create('Unexpected end of input', 0, 0);
+ throw SyntaxError::create('Unexpected end of input', -1, 0);
}
if ($token->token === null || is_string($token->token) || is_int($token->token) || is_float($token->token) || is_bool($token->token)) {
$this->next();
|
src/Parser/Parser.php#L46
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
{
$token = current($this->tokens);
if ($token === false) {
- throw SyntaxError::create('Unexpected end of input', 0, 0);
+ throw SyntaxError::create('Unexpected end of input', 1, 0);
}
if ($token->token === null || is_string($token->token) || is_int($token->token) || is_float($token->token) || is_bool($token->token)) {
$this->next();
|
src/Parser/Parser.php#L46
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
{
$token = current($this->tokens);
if ($token === false) {
- throw SyntaxError::create('Unexpected end of input', 0, 0);
+ throw SyntaxError::create('Unexpected end of input', 0, -1);
}
if ($token->token === null || is_string($token->token) || is_int($token->token) || is_float($token->token) || is_bool($token->token)) {
$this->next();
|
src/Parser/Parser.php#L46
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
{
$token = current($this->tokens);
if ($token === false) {
- throw SyntaxError::create('Unexpected end of input', 0, 0);
+ throw SyntaxError::create('Unexpected end of input', 0, 1);
}
if ($token->token === null || is_string($token->token) || is_int($token->token) || is_float($token->token) || is_bool($token->token)) {
$this->next();
|
src/Parser/Parser.php#L71
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
while (true) {
$token = current($this->tokens);
if ($token === false) {
- throw SyntaxError::create('Unexpected end of input', 0, 0);
+ throw SyntaxError::create('Unexpected end of input', -1, 0);
}
if ($token->token === Token::CloseCurly) {
$this->next();
|
src/Parser/Parser.php#L71
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
while (true) {
$token = current($this->tokens);
if ($token === false) {
- throw SyntaxError::create('Unexpected end of input', 0, 0);
+ throw SyntaxError::create('Unexpected end of input', 1, 0);
}
if ($token->token === Token::CloseCurly) {
$this->next();
|
src/Parser/Parser.php#L71
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
while (true) {
$token = current($this->tokens);
if ($token === false) {
- throw SyntaxError::create('Unexpected end of input', 0, 0);
+ throw SyntaxError::create('Unexpected end of input', 0, -1);
}
if ($token->token === Token::CloseCurly) {
$this->next();
|
The logs for this run have expired and are no longer available.
Loading