Permalink
Browse files

Closes #282: Issue with grouped use statements …

… when only a single level namespace prefix was used.
  • Loading branch information...
manuelpichler committed Jan 11, 2017
1 parent 0bbad70 commit 3e523f58650dcfabe5ad4a1b38791211442c644d
@@ -532,7 +532,7 @@ protected function parseQualifiedNameElement(array $previousElements)
if (Tokens::T_CURLY_BRACE_OPEN !== $this->tokenizer->peek()) {
return parent::parseQualifiedNameElement($previousElements);
}
if (count($previousElements) > 2 && '\\' === end($previousElements)) {
if (count($previousElements) >= 2 && '\\' === end($previousElements)) {
return null;
}
$this->throwUnexpectedTokenException($this->tokenizer->next());
@@ -9,6 +9,8 @@
use my\math\{ const SINDELFINGEN };
use my\ { ClassE, ClassF, ClassG, ClassH as Bofiz };
class ExtendingClass extends ClassB
{
@@ -9,6 +9,8 @@
use my\math\{ const SINDELFINGEN };
use my\ { ClassE, ClassF, ClassG, ClassH as Bofiz };
class ExtendingClass extends ClassB
{

0 comments on commit 3e523f5

Please sign in to comment.