Skip to content

Commit 5724968

Browse files
authored
Merge pull request #25 from villfa/master
Remove unreachable code
2 parents bf91226 + 0709e27 commit 5724968

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/FakePdoStatementTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ public function fetch(
389389

390390
/**
391391
* @param int $column
392-
* @return mixed
392+
* @return null|scalar
393393
*/
394394
public function fetchColumn($column = 0)
395395
{

src/Parser/SQLParser.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ private static function parseImpl(string $sql)
197197
default:
198198
throw new ParserException("Unexpected {$token->value}");
199199
}
200-
throw new ParserException("Parse error: unexpected end of input");
201200
}
202201

203202
/**

src/Processor/Expression/UnaryEvaluator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,5 @@ public static function evaluate(
3939
default:
4040
throw new ProcessorException("Unimplemented unary operand {$expr->name}");
4141
}
42-
43-
return $val;
4442
}
4543
}

0 commit comments

Comments
 (0)