docs/upgrade-v1-to-v2.rst
Version 2 of the Type Resolver introduces several breaking changes and new features. This guide will help you upgrade your codebase to be compatible with the latest version. The usage of the TypeResolver remains the same. However, some classes have been moved or replaced, and the minimum PHP version requirement has been raised.
Version 2 requires PHP 7.4 or higher. We have been supporting PHP 7.3 in version 1, but due to changing constraints in our dependencies, we have had to raise the minimum PHP version. At the moment of writing this, PHP 7.3 is used by 2% of all installations of this package according to Packagist. We believe this is a reasonable trade-off to ensure we can continue to deliver new features and improvements.
phpDocumentor\Reflection\Types\InterfaceString => :php:class:phpDocumentor\Reflection\PseudoTypes\InterfaceStringphpDocumentor\Reflection\Types\ClassString => :php:class:phpDocumentor\Reflection\PseudoTypes\ClassStringphpDocumentor\Reflection\Types\ArrayKey => :php:class:phpDocumentor\Reflection\PseudoTypes\ArrayKeyphpDocumentor\Reflection\Types\True_ => :php:class:phpDocumentor\Reflection\PseudoTypes\True_phpDocumentor\Reflection\Types\False_ => :php:class:phpDocumentor\Reflection\PseudoTypes\False_phpDocumentor\Reflection\Types\Collection => :php:class:phpDocumentor\Reflection\PseudoTypes\GenericSince the introduction of generics in PHP this library was not capable of parsing them correctly. The old Collection was blocking the use of generics. The new Generic type is a representation of generics like supported in the eco system.
:php:class:phpDocumentor\Reflection\PseudoTypes\InterfaceString, :php:class:phpDocumentor\Reflection\PseudoTypes\ClassString and
:php:class:phpDocumentor\Reflection\PseudoTypes\TraitString are no longer returning a :php:class:phpDocumentor\Reflection\Fqsen since
support for generics these classes can have type arguments like any other generic.