You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!($aliasNameResolvedTypeinstanceof ObjectType)
124
-
&& !($aliasNameResolvedTypeinstanceof TemplateType) // aliases take precedence over type parameters, this is reported by other rules using TemplateTypeCheck
125
-
|| in_array($aliasName, ['self', 'parent'], true)
126
-
) {
127
-
$errors[] = RuleErrorBuilder::message(sprintf('Type alias has an invalid name: %s.', $aliasName))->build();
128
-
continue;
129
-
}
128
+
if (!$this->isAliasNameValid($aliasName, $nameScope)) {
129
+
$errors[] = RuleErrorBuilder::message(sprintf('Type alias has an invalid name: %s.', $aliasName))->build();
|| $aliasNameResolvedTypeinstanceof TemplateType; // aliases take precedence over type parameters, this is reported by other rules using TemplateTypeCheck
0 commit comments