We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 453e48f commit b3ef116Copy full SHA for b3ef116
src/DiagnosticsProvider.php
@@ -65,6 +65,21 @@ public static function getDiagnostics($node) : \Generator {
65
}
66
67
68
+ elseif ($node instanceof Node\Statement\NamespaceUseDeclaration) {
69
+ if (count($node->useClauses->children) > 1) {
70
+ var_dump($node->useClauses);
71
+ foreach ($node->useClauses->children as $useClause) {
72
+ if($useClause instanceof Node\NamespaceUseClause && !is_null($useClause->openBrace)) {
73
+ yield new Diagnostic(
74
+ DiagnosticKind::Error,
75
+ "Semicolon expected.",
76
+ $useClause->getEndPosition(),
77
+ 1
78
+ );
79
+ }
80
81
82
83
84
85
foreach ($node->getChildNodesAndTokens() as $child) {
0 commit comments