File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 6
6
use App \Contexts \ObjectValue ;
7
7
use Microsoft \PhpParser \MissingToken ;
8
8
use Microsoft \PhpParser \Node \Expression \ObjectCreationExpression ;
9
+ use Microsoft \PhpParser \Node \QualifiedName ;
9
10
10
11
class ObjectCreationExpressionParser extends AbstractParser
11
12
{
@@ -16,7 +17,10 @@ class ObjectCreationExpressionParser extends AbstractParser
16
17
17
18
public function parse (ObjectCreationExpression $ node )
18
19
{
19
- $ this ->context ->className = (string ) $ node ->classTypeDesignator ->getResolvedName ();
20
+ if ($ node ->classTypeDesignator instanceof QualifiedName) {
21
+ $ this ->context ->className = (string ) $ node ->classTypeDesignator ->getResolvedName ();
22
+ }
23
+
20
24
$ this ->context ->autocompleting = $ node ->closeParen instanceof MissingToken;
21
25
22
26
return $ this ->context ->arguments ;
You can’t perform that action at this time.
0 commit comments