phpdocumentor/type-resolver
A PSR-5 based resolver of Class names, Types and Structural Element Names
2.0.0
770M downloads/mo
#113 most downloaded on composer
phpDocumentor/TypeResolver
What this package is like to depend on
Last release 7 months ago
06 Jan 2026
Release timing varies
gaps range from 2 weeks to 13 months
Rarely documented
notes for 10 of 48 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
48 releases · first in 2015
5 releases in the last 12 months
see the full history below
Release timeline
48 releases · Jun 2015 to Jan 2026Releases
latest 48-
2.0.006 Jan 2026Release notes
Open source →2.0.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 @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:
- Add support for
non-empty-arraywith generics by @mspirkov in #235 - Fix the conversion of lists to strings by @mspirkov in #237
- Replace
CollectionwithGenericTypeby @mspirkov in #238 - Refactor pseudo-types by @mspirkov in #241
- Analyze tests using PHPStan by @mspirkov in #240
- Remove/phpstan v1 parser by @jaapio in #239
- Remove
GenericTemplateclass by @mspirkov in #247 - Fix
IntMaskOfTest::testToString()by @mspirkov in #246 - Remove aliases for
True_andFalse_by @mspirkov in #248 - Update dev dependencies by @mspirkov in #245
- Add support for compound FQSEN to
class-stringandinterface-stringby @mspirkov in #249 - Add support for any array keys by @mspirkov in #236
- Add docs for v1 to v2 migration by @jaapio in #250
- Add support for trait string types by @jaapio in #251
- Add support for
enum-stringby @mspirkov in #252 - Fix PHPUnit coverage report generation by @mspirkov in #253
- Refactor pseudo-types by @mspirkov in #254
- Add 100% test coverage for
PseudoTypesby @mspirkov in #255 - Add identifier to the
Callableby @mspirkov in #258 - Improve the conversion of
Callableto a string by @mspirkov in #259 - Increase test coverage to 96% by @mspirkov in #260
- Refactor types by @mspirkov in #261
- Add support for
properties-ofand its variations by @mspirkov in #267 - Add support for more pseudo-types by @mspirkov in #271
- Improve the conversion of lists to strings by @mspirkov in #273
- Add support for
never-return,never-returnsandno-returnby @mspirkov in #272 - Add support for
open-resourceandclosed-resourceby @mspirkov in #275 - Add support for
callable-arrayby @mspirkov in #276 - Improve the conversion of arrays to strings by @mspirkov in #274
Full Changelog: 1.12.0...2.0.0
- Add support for
-
1.12.021 Nov 2025 -
1.11.121 Nov 2025Release notes
Open source →What's Changed
- Add tests for DNF types by @mspirkov in #230
- Fix
@returnannotation forSelfTest::provideToStringData()by @mspirkov in #229 - Make
OffsetAccessproperties private by @mspirkov in #232
Full Changelog: 1.11.0...1.11.1
-
1.11.019 Nov 2025Release notes
Open source →What's Changed
- Add support for conditional types, offset access types and
key-of,value-of,int-mask,int-mask-ofby @mspirkov in #225 - Add support for generics in
Static_andSelf_by @mspirkov in #228 - Add
.editorconfigby @mspirkov in #226 - Exclude commits with CS changes from Git Blame by @mspirkov in #227
Full Changelog: 1.10.1...1.11.0
- Add support for conditional types, offset access types and
-
1.10.118 Nov 2025Release notes
Open source →What's Changed
- Correct documentation reference by @DannyvdSluijs in #216
- Fix handling of array shapes without keys by @mspirkov in #224
New Contributors
- @DannyvdSluijs made their first contribution in #216
- @mspirkov made their first contribution in #224
Full Changelog: 1.10.0...1.10.1
-
1.10.009 Nov 2024 -
1.9.003 Nov 2024Release notes
Open source →What's Changed
- Add support for non-empty-array notation by @jaapio in #206
- Add support for object and list shape types by @jaapio in #207
- Bump phpDocumentor/.github from 0.5.0 to 0.7 by @dependabot in #209
- build on php 8.4 by @jaapio in #210
Full Changelog: 1.8.2...1.9.0
-
1.8.223 Feb 2024Release notes
Open source →What's Changed
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.
- Be able to run examples whatever current directory is by @llaville in #201
- Downgrade to php 7.3 by @jaapio in #203
New Contributors
Full Changelog: 1.8.1...1.8.2
-
1.8.118 Jan 2024Release notes
Open source → -
1.8.011 Jan 2024Release notes
Open source →What's Changed
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.- Add getter to ArrayShape by @antoinelame in #194
New Contributors
- @antoinelame made their first contribution in #194
Full Changelog: 1.7.4...1.8.0
-
1.7.411 Jan 2024Nothing published for this version
-
1.7.312 Aug 2023Nothing published for this version
-
1.7.230 May 2023Nothing published for this version
-
1.7.127 Mar 2023Nothing published for this version
-
1.7.012 Mar 2023Nothing published for this version
-
1.6.214 Oct 2022Nothing published for this version
-
1.6.115 Mar 2022Nothing published for this version
-
1.6.004 Jan 2022Nothing published for this version
-
1.5.102 Oct 2021Nothing published for this version
-
1.5.017 Sep 2021Nothing published for this version
-
1.4.017 Sep 2020Nothing published for this version
-
1.3.027 Jun 2020Nothing published for this version
-
1.2.019 Jun 2020Nothing published for this version
-
1.1.018 Feb 2020Nothing published for this version
-
1.0.122 Aug 2019Nothing published for this version
-
1.0.008 Jul 2019Nothing published for this version
-
0.7.222 Aug 2019Nothing published for this version
-
0.7.125 Sep 2018Nothing published for this version
-
0.7.022 Aug 2018Nothing published for this version
-
0.6.308 Aug 2018Nothing published for this version
-
0.6.214 Jun 2018Nothing published for this version
-
0.6.112 Feb 2018Nothing published for this version
-
0.6.026 Jan 2018Nothing published for this version
-
0.5.130 Dec 2017Nothing published for this version
-
0.5.015 Nov 2017Nothing published for this version
-
0.4.014 Jul 2017Nothing published for this version
-
0.3.003 Jun 2017Nothing published for this version
-
0.2.125 Nov 2016Nothing published for this version
-
0.1.828 Mar 2016Nothing published for this version
-
0.1.719 Mar 2016Nothing published for this version
-
0.1.602 Dec 2015Nothing published for this version
-
0.1.518 Jul 2015Nothing published for this version
-
0.1.402 Jul 2015Nothing published for this version
-
0.1.326 Jun 2015Nothing published for this version
-
0.1.226 Jun 2015Nothing published for this version
-
0.1.112 Jun 2015Nothing published for this version
-
0.210 Jun 2016Nothing published for this version
-
0.112 Jun 2015Nothing published for this version