Skip to content

Commit

Permalink
Cleaned up switch statment
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxwilko committed Jul 2, 2021
1 parent ec8d643 commit d3f97e1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Config/ConfigFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,10 @@ protected function makeAstNode(string $type, $value)
return new String_($value);
case 'boolean':
return new ConstFetch(new Name($value ? 'true' : 'false'));
break;
case 'integer':
return new LNumber($value);
break;
case 'unknown':
default:
throw new \RuntimeException('not implemented replacement type: ' . $type);
break;
}
}

Expand Down

0 comments on commit d3f97e1

Please sign in to comment.