Skip to content

Commit b430dd9

Browse files
committed
update ContextFactory::createForNamespace
1 parent 3a90651 commit b430dd9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Types/ContextFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ public function createForNamespace(string $namespace, string $fileContents): Con
181181
$currentNamespace = $this->parseNamespace($tokens);
182182
break;
183183
case T_CLASS:
184+
case T_TRAIT:
184185
// Fast-forward the iterator through the class so that any
185186
// T_USE tokens found within are skipped - these are not
186187
// valid namespace use statements so should be ignored.

0 commit comments

Comments
 (0)