NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #112 most downloaded on Packagist
A PSR-5 based resolver of Class names, Types and Structural Element Names
Latest stable
2.1.0
Last release 1 months ago
27 Sep 2026
Release timing varies
gaps range from 2 weeks to 13 months
Most releases are documented
notes for 38 of 49 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
49 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
Update .gitattributes by @williamdes in #286
Full Changelog: 2.0.0...2.1.0
After year of improvements in a backward compatible way this is the moment we break with this pattern. This release is mostly build thanks to @mspirko
After year of improvements in a backward compatible way this is the moment we break with this pattern. This release is mostly build thanks to @mspirkov. Who implemented many of the improvements to support generics and remove all legacy.
Please consult the upgrade guide in our docs https://docs.phpdoc.org/components/type-resolver/guides/upgrade-v1-to-v2.html
Full change list:
non-empty-array with generics by @mspirkov in #235Collection with GenericType by @mspirkov in #238GenericTemplate class by @mspirkov in #247IntMaskOfTest::testToString() by @mspirkov in #246True_ and False_ by @mspirkov in #248class-string and interface-string by @mspirkov in #249enum-string by @mspirkov in #252PseudoTypes by @mspirkov in #255Callable by @mspirkov in #258Callable to a string by @mspirkov in #259properties-of and its variations by @mspirkov in #267never-return, never-returns and no-return by @mspirkov in #272open-resource and closed-resource by @mspirkov in #275callable-array by @mspirkov in #276Full Changelog: 1.12.0...2.0.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Add AbstractList::getOriginalKeyType() method by @mspirkov in #233
Full Changelog: 1.11.1...1.12.0
Add tests for DNF types by @mspirkov in #230
Add support for conditional types, offset access types and key-of , value-of , int-mask , int-mask-of by @mspirkov in #225
key-of, value-of, int-mask, int-mask-of by @mspirkov in #225Static_ and Self_ by @mspirkov in #228.editorconfig by @mspirkov in #226Full Changelog: 1.10.1...1.11.0
Correct documentation reference by @DannyvdSluijs in #216
Full Changelog: 1.10.0...1.10.1
add support for phpstan/phpdoc-parser 2 by @xabbuh in #212
Full Changelog: 1.9.0...1.10.0
Add support for non-empty-array notation by @jaapio in #206
Full Changelog: 1.8.2...1.9.0
…v5 together with this package. There are no breaking changes or other changes people should be aware of.
This new patch version reintroduces php 7.3 support to allow users to use php-parser v5 together with this package. There are no breaking changes or other changes people should be aware of.
Full Changelog: 1.8.1...1.8.2
Make Float_ non-final by @antoinelame in #200
This version allows users to get the Item definition of ArrayShape types, and gives you access to the type definition of these item. Using the new Arr
This version allows users to get the Item definition of ArrayShape types, and gives you access to the type definition of these item. Using the new ArrayShape::getItems() method.
Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.7.4...1.8.0
This patch ensures this library works with php-parser v5. Due a conflict in the way both libraries were handling the forward compatibility on php 7.4
This patch ensures this library works with php-parser v5. Due a conflict in the way both libraries were handling the forward compatibility on php 7.4 for language constructs in php 8+. This patch version should not have any impact on the way you are using the library unless you did use the value of the T_NAME_QUALIFIED and T_NAME_FULLY_QUALIFIED constants, and you are running php 7.4
Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.7.3...1.7.4
Fix ContextFactory::createForNamespace detects wrong use statement by @maMykola in https://github.com/phpDocumentor/TypeResolver/pull/192
Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.7.2...1.7.3
Change underlying type for StringValue pseudo type by @astronom in https://github.com/phpDocumentor/TypeResolver/pull/189
Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.7.1...1.7.2
Fix compound array key support by @jaapio in https://github.com/phpDocumentor/TypeResolver/pull/188
Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.7.0...1.7.1
This version of the type resolver contains an internal rewrite of the type parser using phpstan/php-doc-parser. This enables a number of features rega
This version of the type resolver contains an internal rewrite of the type parser using phpstan/php-doc-parser. This enables a number of features regarding more advanced type resolving. The interface of the library has not been changed. This version should be fully backward compatible.
Please report any regressions when you encounter issues.
Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.6.2...1.7.0
Upgrade to standardized phpdoc ci by @jaapio in https://github.com/phpDocumentor/TypeResolver/pull/170
Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.6.1...1.6.2
fix for zero IntRange by @voku in https://github.com/phpDocumentor/TypeResolver/pull/153
IntRange by @voku in https://github.com/phpDocumentor/TypeResolver/pull/153Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.6.0...1.6.1
Add list pseudo-type by @enumag in https://github.com/phpDocumentor/TypeResolver/pull/136
ramsey/composer-install by @jrfnl in https://github.com/phpDocumentor/TypeResolver/pull/144Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.5.1...1.6.0
add support for literal-string, thanks to @voku
This version contains various fixes, and adds support for php 8.1 including the new never return type. See the changelog below for details about this
This version contains various fixes, and adds support for php 8.1 including the new never return type.
See the changelog below for details about this release.
never return type #130 thanks to @jaapioImproved Pseudo type support #113, thanks to @mvriel
phpDocumentor\Reflection\Types\False_ is replaced by \phpDocumentor\Reflection\PseudoTypes\False_ will be removed in v2phpDocumentor\Reflection\Types\True_ is replaced by \phpDocumentor\Reflection\PseudoTypes\True_ will be removed in v2Add php 8 support #110 , thanks to @jaapio
Add support for True and False pseudo-types #14, thanks to @jaapio
True and False pseudo-types #14, thanks to @jaapioAdd collection syntax support for iterable, #80 thanks to @julienfalque
This version contains a fixed regression regarding namespace alias interpretation.
This version contains a fixed regression regarding namespace alias interpretation.
This release doesn't contain any new features since the previous release. All methods do have the correct typehints and return types now. The codebase
This release doesn't contain any new features since the previous release. All methods do have the correct typehints and return types now. The codebase is fully checked with phpstan and psaml.
This version contains a fixed regression regarding namespace alias interpretation.
This version contains a fixed regression regarding namespace alias interpretation.
Throw exception on unclosed array in type notation
Support for grouped use statements #64 thanks to @ragboyjr
bump reflection-common dependency to newest beta
bump reflection-common dependency to newest beta
bump reflection-common dependency to newest alpha
bump reflection-common dependency to newest alpha
Fixed #55 : ContextFactory::createFromReflector() doesn't work with ReflectionProperty
Fixed #55 : ContextFactory::createFromReflector() doesn't work with ReflectionProperty
* bump to PHP 7.1 minimum * add strict typing
added missing pseudo-type alias of float
Support of array expression of PSR-5
### Added - Renamed Mixed to Mixed_ - Renamed Resource to Resource_ ### Deprecated - Nothing ### Fixed - HHVM build on travis ### Removed - Nothing ##
### Added - Support for iterable type. - Support for Nullable type - Support for parent type - Travis build for php 7.1 ### Deprecated - Nothing ### F
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.