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