File tree 1 file changed +2
-2
lines changed
Filter options
1 file changed +2
-2
lines changed
Original file line number Diff line number Diff line change 4
4
5
5
use App \Contexts \AbstractContext ;
6
6
use App \Contexts \ArrayValue ;
7
- use App \Contexts \ObjectValue ;
8
7
use Microsoft \PhpParser \MissingToken ;
9
8
use Microsoft \PhpParser \Node ;
10
9
use Microsoft \PhpParser \Node \Expression \ArrayCreationExpression ;
11
10
use Microsoft \PhpParser \Node \Expression \CallExpression ;
11
+ use Microsoft \PhpParser \Node \Expression \ObjectCreationExpression ;
12
12
13
13
class ArrayCreationExpressionParser extends AbstractParser
14
14
{
@@ -35,7 +35,7 @@ public function parse(ArrayCreationExpression $node)
35
35
// If array is inside a method, for example Validator::validate(['
36
36
// then we need to ignore findable for ArrayValue because
37
37
// priority is given to App\Contexts\MethodCall or App\Contexts\ObjectValue
38
- if (!$ this ->isParentNode ($ node , [CallExpression::class, ObjectValue ::class])) {
38
+ if (!$ this ->isParentNode ($ node , [CallExpression::class, ObjectCreationExpression ::class])) {
39
39
$ this ->context ->findable = true ;
40
40
}
41
41
You can’t perform that action at this time.
0 commit comments