Skip to content

Commit 5556305

Browse files
committed
Fix superfluous type checks
1 parent f0695bb commit 5556305

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Type/Doctrine/Query/QueryResultTypeWalker.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,6 @@ public function walkIdentificationVariable($identificationVariable, $fieldName =
221221
*/
222222
public function walkPathExpression($pathExpr)
223223
{
224-
assert($pathExpr instanceof AST\PathExpression);
225-
226224
$fieldName = $pathExpr->field;
227225
$dqlAlias = $pathExpr->identificationVariable;
228226
$qComp = $this->queryComponents[$dqlAlias];
@@ -1083,10 +1081,6 @@ public function walkInParameter($inParam)
10831081
*/
10841082
public function walkLiteral($literal)
10851083
{
1086-
if (!$literal instanceof AST\Literal) {
1087-
return $this->marshalType(new MixedType());
1088-
}
1089-
10901084
switch ($literal->type) {
10911085
case AST\Literal::STRING:
10921086
$value = $literal->value;

0 commit comments

Comments
 (0)