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 68f4fa2 commit 3bac790Copy full SHA for 3bac790
src/TypeSystem/Scope/GlobalScope/GlobalScope.php
@@ -47,11 +47,11 @@ public static function get(): self
47
48
public function getType(TypeName $typeName): AtomicTypeInterface
49
{
50
- return match ($typeName->value) {
51
- 'string' => StringType::get(),
52
- 'number' => IntegerType::get(),
53
- 'boolean' => BooleanType::get(),
54
- 'slot' => SlotType::get(),
+ return match ($typeName) {
+ StringType::get()->getName() => StringType::get(),
+ IntegerType::get()->getName() => IntegerType::get(),
+ BooleanType::get()->getName() => BooleanType::get(),
+ SlotType::get()->getName() => SlotType::get(),
55
default => throw new \Exception('@TODO: Unknown Type ' . $typeName->value)
56
};
57
}
0 commit comments