@@ -20,7 +20,7 @@ implement more strict functionality.
2020To enable or disable literals, use the ` literals: bool ` flag.
2121
2222``` php
23- $parser = new TypeLang\Parser\Parser (
23+ $parser = new TypeLang\Parser\TypeParser (
2424 literals: false,
2525);
2626
@@ -38,7 +38,7 @@ To enable or disable template arguments (generics), use
3838the ` generics: bool ` flag.
3939
4040``` php
41- $parser = new TypeLang\Parser\Parser (
41+ $parser = new TypeLang\Parser\TypeParser (
4242 generics: false,
4343);
4444
@@ -56,7 +56,7 @@ To enable or disable template argument hints (argument modifiers), use the
5656` hints: bool ` flag.
5757
5858``` php
59- $parser = new TypeLang\Parser\Parser (
59+ $parser = new TypeLang\Parser\TypeParser (
6060 hints: false,
6161);
6262
@@ -74,7 +74,7 @@ To enable or disable type lists (legacy/short syntax for iterable types), use
7474the ` list: bool ` flag.
7575
7676``` php
77- $parser = new TypeLang\Parser\Parser (
77+ $parser = new TypeLang\Parser\TypeParser (
7878 list: false,
7979);
8080
@@ -93,7 +93,7 @@ Square bracket list types not allowed in "Example[]"
9393To enable or disable type offsets, use the ` offsets: bool ` flag.
9494
9595``` php
96- $parser = new TypeLang\Parser\Parser (
96+ $parser = new TypeLang\Parser\TypeParser (
9797 offsets: false,
9898);
9999
@@ -111,7 +111,7 @@ Type offsets not allowed in "Example[Type]"
111111To enable or disable callables (delegates), use the ` callables: bool ` flag.
112112
113113``` php
114- $parser = new TypeLang\Parser\Parser (
114+ $parser = new TypeLang\Parser\TypeParser (
115115 callables: false,
116116);
117117
@@ -128,7 +128,7 @@ Callable types not allowed in "fn()"
128128To enable or disable shape fields, use the ` shapes: bool ` flag.
129129
130130``` php
131- $parser = new TypeLang\Parser\Parser (
131+ $parser = new TypeLang\Parser\TypeParser (
132132 shapes: false,
133133);
134134
@@ -150,7 +150,7 @@ Shape fields not allowed in "array{\n foo: T,\n ...\n}"
150150To enable or disable union types, use the ` union: bool ` flag.
151151
152152``` php
153- $parser = new TypeLang\Parser\Parser (
153+ $parser = new TypeLang\Parser\TypeParser (
154154 union: false,
155155);
156156
@@ -167,7 +167,7 @@ Union types not allowed in "T|U"
167167To enable or disable union types, use the ` intersection: bool ` flag.
168168
169169``` php
170- $parser = new TypeLang\Parser\Parser (
170+ $parser = new TypeLang\Parser\TypeParser (
171171 intersection: false,
172172);
173173
@@ -184,7 +184,7 @@ Intersection types not allowed in "T&U"
184184To enable or disable conditional types (expressions), use the ` conditional: bool ` flag.
185185
186186``` php
187- $parser = new TypeLang\Parser\Parser (
187+ $parser = new TypeLang\Parser\TypeParser (
188188 conditional: false,
189189);
190190
@@ -201,7 +201,7 @@ Conditional expressions not allowed in "T is U ? 23 : 42"
201201To enable or disable attributes, use the ` attributes: bool ` flag.
202202
203203``` php
204- $parser = new TypeLang\Parser\Parser (
204+ $parser = new TypeLang\Parser\TypeParser (
205205 attributes: false,
206206);
207207
0 commit comments