Skip to content

Commit

Permalink
Check if name is empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
msarca committed Dec 16, 2018
1 parent 73b2cf6 commit 434a77b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ReflectionClosure.php
Original file line number Diff line number Diff line change
Expand Up @@ -775,8 +775,7 @@ protected function fetchItems()
$state = 'alias';
break;
}
} elseif ($token[0] === '}') {
$name = '';
} elseif ($name === '') {
$state = 'start';
} else {
if ($name[0] !== '\\' && $prefix === '') {
Expand Down

0 comments on commit 434a77b

Please sign in to comment.