File tree Expand file tree Collapse file tree 4 files changed +1
-21
lines changed
Expand file tree Collapse file tree 4 files changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,6 @@ final class ConcreteType extends Type {
2525 return $this -> generics ;
2626 }
2727
28- <<__Override >>
29- public function getAlias (): null {
30- return null ;
31- }
32-
3328 <<__Override >>
3429 public function hasAlias (): bool {
3530 return false ;
Original file line number Diff line number Diff line change @@ -21,11 +21,6 @@ final class OptionalType extends Type {
2121 return $this -> type -> getGenerics();
2222 }
2323
24- <<__Override >>
25- public function getAlias (): ?string {
26- return $this -> type -> getAlias();
27- }
28-
2924 <<__Override >>
3025 public function hasAlias (): bool {
3126 return $this -> type -> hasAlias();
Original file line number Diff line number Diff line change @@ -19,11 +19,6 @@ abstract class Type {
1919 */
2020 abstract public function getGenerics (): vec <Type >;
2121
22- /**
23- * Alias for this type, if any.
24- */
25- abstract public function getAlias (): ?string ;
26-
2722 /**
2823 * Whether this type has an alias (e.g., is of form <alias> or ?<alias>).
2924 */
Original file line number Diff line number Diff line change @@ -23,11 +23,6 @@ final class TypeAlias extends Type {
2323 return $this -> getType()-> getGenerics();
2424 }
2525
26- <<__Override >>
27- public function getAlias (): string {
28- return $this -> alias ;
29- }
30-
3126 <<__Override >>
3227 public function hasAlias (): bool {
3328 return $this -> getType()-> hasAlias();
@@ -40,6 +35,6 @@ final class TypeAlias extends Type {
4035
4136 <<__Override >>
4237 public function render (): string {
43- return $this -> getAlias() ;
38+ return $this -> alias ;
4439 }
4540}
You can’t perform that action at this time.
0 commit comments