@@ -28,27 +28,27 @@ final class TypeResolver
2828
2929 /** @var string[] List of recognized keywords and unto which Value Object they map */
3030 private $ keywords = array (
31- 'string ' => ' phpDocumentor\Reflection\ Types\String_' ,
32- 'int ' => ' phpDocumentor\Reflection\ Types\Integer' ,
33- 'integer ' => ' phpDocumentor\Reflection\ Types\Integer' ,
34- 'bool ' => ' phpDocumentor\Reflection\ Types\Boolean' ,
35- 'boolean ' => ' phpDocumentor\Reflection\ Types\Boolean' ,
36- 'float ' => ' phpDocumentor\Reflection\ Types\Float_' ,
37- 'double ' => ' phpDocumentor\Reflection\ Types\Float_' ,
38- 'object ' => ' phpDocumentor\Reflection\Types\ Object_' ,
39- 'mixed ' => ' phpDocumentor\Reflection\ Types\Mixed' ,
40- 'array ' => ' phpDocumentor\Reflection\Types\ Array_' ,
41- 'resource ' => ' phpDocumentor\Reflection\ Types\Resource' ,
42- 'void ' => ' phpDocumentor\Reflection\ Types\Void_' ,
43- 'null ' => ' phpDocumentor\Reflection\ Types\Null_' ,
44- 'scalar ' => ' phpDocumentor\Reflection\ Types\Scalar' ,
45- 'callback ' => ' phpDocumentor\Reflection\ Types\Callable_' ,
46- 'callable ' => ' phpDocumentor\Reflection\ Types\Callable_' ,
47- 'false ' => ' phpDocumentor\Reflection\ Types\Boolean' ,
48- 'true ' => ' phpDocumentor\Reflection\ Types\Boolean' ,
49- 'self ' => ' phpDocumentor\Reflection\ Types\Self_' ,
50- '$this ' => ' phpDocumentor\Reflection\ Types\This' ,
51- 'static ' => ' phpDocumentor\Reflection\ Types\Static_' ,
31+ 'string ' => Types \String_::class ,
32+ 'int ' => Types \Integer::class ,
33+ 'integer ' => Types \Integer::class ,
34+ 'bool ' => Types \Boolean::class ,
35+ 'boolean ' => Types \Boolean::class ,
36+ 'float ' => Types \Float_::class ,
37+ 'double ' => Types \Float_::class ,
38+ 'object ' => Object_::class ,
39+ 'mixed ' => Types \Mixed::class ,
40+ 'array ' => Array_::class ,
41+ 'resource ' => Types \Resource::class ,
42+ 'void ' => Types \Void_::class ,
43+ 'null ' => Types \Null_::class ,
44+ 'scalar ' => Types \Scalar::class ,
45+ 'callback ' => Types \Callable_::class ,
46+ 'callable ' => Types \Callable_::class ,
47+ 'false ' => Types \Boolean::class ,
48+ 'true ' => Types \Boolean::class ,
49+ 'self ' => Types \Self_::class ,
50+ '$this ' => Types \This::class ,
51+ 'static ' => Types \Static_::class ,
5252 'iterable ' => Iterable_::class,
5353 );
5454
@@ -239,6 +239,7 @@ private function resolveKeyword($type)
239239 * Resolves the given FQSEN string into an FQSEN object.
240240 *
241241 * @param string $type
242+ * @param Context|null $context
242243 *
243244 * @return Object_
244245 */
0 commit comments