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-array with generics by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/235
Fix the conversion of lists to strings by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/237
Replace Collection with GenericType by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/238
Refactor pseudo-types by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/241
Analyze tests using PHPStan by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/240
Remove/phpstan v1 parser by @jaapio in https://github.com/phpDocumentor/TypeResolver/pull/239
Remove GenericTemplate class by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/247
Fix IntMaskOfTest::testToString() by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/246
Remove aliases for True_ and False_ by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/248
Update dev dependencies by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/245
Add support for compound FQSEN to class-string and interface-string by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/249
Add support for any array keys by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/236
Add docs for v1 to v2 migration by @jaapio in https://github.com/phpDocumentor/TypeResolver/pull/250
Add support for trait string types by @jaapio in https://github.com/phpDocumentor/TypeResolver/pull/251
Add support for enum-string by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/252
Fix PHPUnit coverage report generation by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/253
Refactor pseudo-types by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/254
Add 100% test coverage for PseudoTypes by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/255
Add identifier to the Callable by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/258
Improve the conversion of Callable to a string by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/259
Increase test coverage to 96% by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/260
Refactor types by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/261
Add support for properties-of and its variations by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/267
Add support for more pseudo-types by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/271
Improve the conversion of lists to strings by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/273
Add support for never-return, never-returns and no-return by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/272
Add support for open-resource and closed-resource by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/275
Add support for callable-array by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/276
Improve the conversion of arrays to strings by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/274
Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.12.0...2.0.0