File tree 3 files changed +14
-8
lines changed
3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 12
12
"php" : " ^8.1" ,
13
13
"psr/log" : " ^1.0|^2.0|^3.0" ,
14
14
"psr/simple-cache" : " ^1.0|^2.0|^3.0" ,
15
- "type-lang/parser" : " ^1.3 " ,
16
- "type-lang/printer" : " ^1.2 "
15
+ "type-lang/parser" : " ^1.4 " ,
16
+ "type-lang/printer" : " ^1.3 "
17
17
},
18
18
"autoload" : {
19
19
"psr-4" : {
Original file line number Diff line number Diff line change 7
7
enum GrammarFeature
8
8
{
9
9
/**
10
- * Enables conditional types such as `T ? X : Y `.
10
+ * Enables conditional types such as `T ? U : V `.
11
11
*/
12
12
case Conditional;
13
13
14
14
/**
15
- * Enables type shapes such as `T{key: X }`.
15
+ * Enables type shapes such as `T{key: U }`.
16
16
*/
17
17
case Shapes;
18
18
19
19
/**
20
- * Enables callable types such as `name(X, Y ): T`.
20
+ * Enables callable types such as `name(U, V ): T`.
21
21
*/
22
22
case Callables;
23
23
@@ -27,17 +27,17 @@ enum GrammarFeature
27
27
case Literals;
28
28
29
29
/**
30
- * Enables template arguments such as `T<X, Y >`.
30
+ * Enables template arguments such as `T<U, V >`.
31
31
*/
32
32
case Generics;
33
33
34
34
/**
35
- * Enables logical union types such as `T | X `.
35
+ * Enables logical union types such as `T | U `.
36
36
*/
37
37
case Union;
38
38
39
39
/**
40
- * Enables logical intersection types such as `T & X `.
40
+ * Enables logical intersection types such as `T & U `.
41
41
*/
42
42
case Intersection;
43
43
@@ -46,6 +46,11 @@ enum GrammarFeature
46
46
*/
47
47
case List;
48
48
49
+ /**
50
+ * Enables offset types such as `T[U]`.
51
+ */
52
+ case Offsets;
53
+
49
54
/**
50
55
* Enables or disables support for template argument
51
56
* hints such as `T<out U, in V>`.
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ public static function createFromPlatform(PlatformInterface $platform): self
33
33
union: $ platform ->isFeatureSupported (GrammarFeature::Union),
34
34
intersection: $ platform ->isFeatureSupported (GrammarFeature::Intersection),
35
35
list: $ platform ->isFeatureSupported (GrammarFeature::List),
36
+ offsets: $ platform ->isFeatureSupported (GrammarFeature::Offsets),
36
37
hints: $ platform ->isFeatureSupported (GrammarFeature::Hints),
37
38
attributes: $ platform ->isFeatureSupported (GrammarFeature::Attributes),
38
39
));
You can’t perform that action at this time.
0 commit comments