Skip to content

Commit a6e09a7

Browse files
committed
Fix Variance class name
1 parent fd55c8d commit a6e09a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function types(): \Generator
3535
yield new Type('object', 'object', [new Property('properties', 'array', 'array<non-empty-string, Property>')]);
3636
yield new Type('callable', 'callable', [new Property('templates', 'array', 'list<TemplateT>'), new Property('parameters', 'array', 'list<Parameter>'), new Property('returnType', $typeClass, 'Type<mixed>')]);
3737
// reference
38-
yield new Type('template', 'mixed', [new Property('name', 'string', 'non-empty-string'), new Property('variance', 'Variance'), new Property('upperBound', $typeClass)]);
38+
yield new Type('template', 'mixed', [new Property('name', 'string', 'non-empty-string'), new Property('variance', 'Typhoon\Type\Variance'), new Property('upperBound', $typeClass)]);
3939
yield new Type('constant', 'mixed', [new Property('name', 'string', 'non-empty-string')]);
4040
yield new Type('classConstant', 'mixed', [new Property('objectType', $typeClass, 'Type<object>'), new Property('name', 'string', 'non-empty-string')]);
4141
yield new Type('classConstantMask', 'mixed', [new Property('objectType', $typeClass, 'Type<object>'), new Property('namePrefix', 'string')]);

0 commit comments

Comments
 (0)