Skip to content

Commit 89b1ca8

Browse files
authored
Merge pull request #2 from KieranFYI/master
Fixes for runtime errors
2 parents bc46cee + 4bc266c commit 89b1ca8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FileProcessor.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected function processStatements(array $statements, $prefix = '')
7070

7171
if ($statement instanceof Use_) {
7272
foreach ($statement->uses as $use) {
73-
$uses[$use->alias] = (string)$use->name;
73+
$uses[(string) $use->alias] = (string)$use->name;
7474
}
7575
}
7676

@@ -151,7 +151,7 @@ protected function processStatements(array $statements, $prefix = '')
151151
}
152152
}
153153

154-
$thisMethod['params']['$'.$param->name] = $paramType;
154+
$thisMethod['params']['$'.$param->var->name] = $paramType;
155155
}
156156

157157
$this->methods[$fullMethodName] = $thisMethod;

0 commit comments

Comments
 (0)