File tree Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function toString(PrettyPrintOptions $prettyPrintOptions): string {
32
32
}
33
33
34
34
public function buildNode (Scope $ scope ): Node {
35
- return new Node ( ' BracketExpression ' , [ $ this ->expression ->buildNode ($ scope)] );
35
+ return $ this ->expression ->buildNode ($ scope );
36
36
}
37
37
38
38
public function getExpression (): Expression {
Original file line number Diff line number Diff line change @@ -20,14 +20,6 @@ public function equals(Type $type): bool {
20
20
return $ type instanceof DateTimeImmutableType;
21
21
}
22
22
23
- // public function getImplementedOperators(): array {
24
- // return [
25
- // new ImplementableOperator(ImplementableOperator::TYPE_ADDITION),
26
- // new ImplementableOperator(ImplementableOperator::TYPE_SUBTRACTION),
27
- // new ImplementableOperator(ImplementableOperator::TYPE_TYPE_CAST)
28
- // ];
29
- // }
30
-
31
23
protected function getTypeCompatibleOperands (ImplementableOperator $ operator ): array {
32
24
switch ($ operator ->getID ()) {
33
25
case ImplementableOperator::TYPE_ADDITION :
Original file line number Diff line number Diff line change @@ -45,9 +45,6 @@ public function testOK(): void {
45
45
* Node
46
46
*/
47
47
$ node = $ expression ->buildNode (new Scope ());
48
- $ this ->assertEquals ('BracketExpression ' , $ node ->nodeType );
49
- $ this ->assertCount (1 , $ node ->connected );
50
- $ this ->assertEquals ($ constantNode , $ node ->connected [0 ]);
51
- $ this ->assertEquals ([], $ node ->info );
48
+ $ this ->assertEquals ('ConstantExpression ' , $ node ->nodeType );
52
49
}
53
50
}
You can’t perform that action at this time.
0 commit comments