TypeResolver
TypeResolver copied to clipboard
A PSR-5 based resolver of Class names, Types and Structural Element Names
e.g.: `class-string` ⇒ currently this will throw an exception like `\Foo\Bar|\Foo\Lall is not a class string`
Giving following comment: `@param array{id: string} $a param description` I get: `"\array{id: string}" is not a valid Fqsen.` But it should resolves
As an experiment, I have built a lexer for the TypeResolver using Doctrine's Lexer library. This Lexer will create tokens out of a sting representing a type. Net step in...
Hello, I have 2 classes in different namespaces, and trait connecting them, ex: ``` namespace Command\Common\Traits; use Command\Model\Payment\UserAccountDetails; trait UserDetailsAwareTrait { /** * @var UserAccountDetails */ protected $userAccountDetails; public function...
After some discussion with @nikic on https://github.com/phpDocumentor/TypeResolver/pull/9/files#r34962566 it looks like `ContextFactory::getNamespaceAliases()` doesn't cope with multiple imports with the same aliased name. For example: ``` php namespace Foo; use Foo\X; class...
I am not sure where I need to look at, if you point me to the affected code, I will try to fix it. :) example: ```php /** * @param...
Hello, whether on branch `1.x` or on the last tagged version, generics are always considered [as a collection](https://github.com/phpDocumentor/TypeResolver/blob/1.x/src/TypeResolver.php#L362) although this is not always true. Is it made on purpose or...
Right now this library does not support class-string, interface-string, etc. with compound FQSEN definitions: E.g: `class-string`
In early versions of this library, we did support the native nullable types of PHP. (e.g `?string`). The new version of our parser based on phpstan/phpdoc-parser does not support this...
When building DNF types `function foo ((A&B)|C $x): (A&B)|C|(D&E) {}` it's not possible to build it with Intersection and Compound. https://github.com/phpDocumentor/TypeResolver/blob/06f36c92b434ac686de06b6563e88046943bccbe/src/Types/AggregatedType.php#L109