66
77use TypeLang \Mapper \Exception \Definition \TypeNotFoundException ;
88use TypeLang \Mapper \Platform \PlatformInterface ;
9- use TypeLang \Mapper \Runtime \Parser \TypeParserFacadeInterface ;
9+ use TypeLang \Mapper \Runtime \Parser \TypeParserInterface ;
1010use TypeLang \Mapper \Type \Builder \TypeBuilderInterface ;
1111use TypeLang \Mapper \Type \TypeInterface ;
1212use TypeLang \Parser \Node \Stmt \TypeStatement ;
@@ -26,7 +26,7 @@ final class TypeRepository implements
2626 * @param iterable<array-key, TypeBuilderInterface<covariant TypeStatement, TypeInterface>> $types
2727 */
2828 public function __construct (
29- private readonly TypeParserFacadeInterface $ parser ,
29+ private readonly TypeParserInterface $ parser ,
3030 iterable $ types = [],
3131 private readonly ReferencesResolver $ references = new ReferencesResolver (),
3232 ) {
@@ -36,6 +36,7 @@ public function __construct(
3636
3737 /**
3838 * @param iterable<array-key, TypeBuilderInterface<covariant TypeStatement, TypeInterface>> $types
39+ *
3940 * @return list<TypeBuilderInterface<covariant TypeStatement, TypeInterface>>
4041 */
4142 private static function toArrayList (iterable $ types ): array
@@ -60,7 +61,7 @@ public function setTypeRepository(TypeRepositoryInterface $parent): void
6061 */
6162 public static function createFromPlatform (
6263 PlatformInterface $ platform ,
63- TypeParserFacadeInterface $ parser ,
64+ TypeParserInterface $ parser ,
6465 ReferencesResolver $ references = new ReferencesResolver (),
6566 ): self {
6667 return new self (
0 commit comments