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 fd55c8d commit a6e09a7Copy full SHA for a6e09a7
src/types.php
@@ -35,7 +35,7 @@ function types(): \Generator
35
yield new Type('object', 'object', [new Property('properties', 'array', 'array<non-empty-string, Property>')]);
36
yield new Type('callable', 'callable', [new Property('templates', 'array', 'list<TemplateT>'), new Property('parameters', 'array', 'list<Parameter>'), new Property('returnType', $typeClass, 'Type<mixed>')]);
37
// reference
38
- yield new Type('template', 'mixed', [new Property('name', 'string', 'non-empty-string'), new Property('variance', 'Variance'), new Property('upperBound', $typeClass)]);
+ yield new Type('template', 'mixed', [new Property('name', 'string', 'non-empty-string'), new Property('variance', 'Typhoon\Type\Variance'), new Property('upperBound', $typeClass)]);
39
yield new Type('constant', 'mixed', [new Property('name', 'string', 'non-empty-string')]);
40
yield new Type('classConstant', 'mixed', [new Property('objectType', $typeClass, 'Type<object>'), new Property('name', 'string', 'non-empty-string')]);
41
yield new Type('classConstantMask', 'mixed', [new Property('objectType', $typeClass, 'Type<object>'), new Property('namePrefix', 'string')]);
0 commit comments