Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit 687bb03

Browse files
authored
Merge pull request #33 from charliemcratgear4music/fix-toString-on-string
Fixes bug when trying to call toString on a string
2 parents ddd0bfc + dbba4a3 commit 687bb03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FileParser/FileParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ protected function processStatements($file, array $statements, $prefix = '')
154154

155155
if ($type instanceof NullableType) {
156156
$type = $type->type->toString();
157-
} elseif ($type !== null) {
157+
} elseif ($type instanceof NodeAbstract) {
158158
$type = $type->toString();
159159
}
160160

0 commit comments

Comments
 (0)