File tree Expand file tree Collapse file tree 3 files changed +2
-16
lines changed Expand file tree Collapse file tree 3 files changed +2
-16
lines changed Original file line number Diff line number Diff line change 2
2
declare (strict_types = 1 );
3
3
namespace TimoLehnertz \formula \type ;
4
4
5
- use TimoLehnertz \formula \nodes \NodeInterfaceType ;
6
5
use TimoLehnertz \formula \operator \ImplementableOperator ;
7
6
8
7
/**
@@ -26,10 +25,6 @@ public function getIdentifier(bool $isNested = false): string {
26
25
return 'never ' ;
27
26
}
28
27
29
- // public function getImplementedOperators(): array {
30
- // return [];
31
- // }
32
-
33
28
protected function getTypeOperatorResultType (ImplementableOperator $ operator , ?Type $ otherType ): ?Type {
34
29
return null ;
35
30
}
Original file line number Diff line number Diff line change 4
4
5
5
namespace TimoLehnertz \formula \type ;
6
6
7
- use TimoLehnertz \formula \nodes \NodeInterfaceType ;
8
7
use TimoLehnertz \formula \operator \ImplementableOperator ;
9
8
10
9
/**
13
12
class NullType extends Type {
14
13
15
14
public function __construct () {
16
- parent ::__construct ();
15
+ parent ::__construct ([ new NullValue ()] );
17
16
}
18
17
19
18
protected function typeAssignableBy (Type $ type ): bool {
@@ -28,10 +27,6 @@ public function getIdentifier(bool $isNested = false): string {
28
27
return 'null ' ;
29
28
}
30
29
31
- // public function getImplementedOperators(): array {
32
- // return [];
33
- // }
34
-
35
30
protected function getTypeCompatibleOperands (ImplementableOperator $ operator ): array {
36
31
return [];
37
32
}
Original file line number Diff line number Diff line change 10
10
class VoidType extends Type {
11
11
12
12
public function __construct () {
13
- parent ::__construct ();
13
+ parent ::__construct ([ new VoidValue ()] );
14
14
}
15
15
16
16
public function getIdentifier (bool $ nested = false ): string {
@@ -25,10 +25,6 @@ public function equals(Type $type): bool {
25
25
return $ type instanceof VoidType;
26
26
}
27
27
28
- // public function getImplementedOperators(): array {
29
- // return [];
30
- // }
31
-
32
28
protected function getTypeCompatibleOperands (ImplementableOperator $ operator ): array {
33
29
return [];
34
30
}
You can’t perform that action at this time.
0 commit comments