Skip to content

Commit

Permalink
Merge pull request #33 from charliemcratgear4music/fix-toString-on-st…
Browse files Browse the repository at this point in the history
…ring

Fixes bug when trying to call toString on a string
  • Loading branch information
dancryer committed Apr 26, 2019
2 parents ddd0bfc + dbba4a3 commit 687bb03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FileParser/FileParser.php
Expand Up @@ -154,7 +154,7 @@ protected function processStatements($file, array $statements, $prefix = '')

if ($type instanceof NullableType) {
$type = $type->type->toString();
} elseif ($type !== null) {
} elseif ($type instanceof NodeAbstract) {
$type = $type->toString();
}

Expand Down

0 comments on commit 687bb03

Please sign in to comment.