---
title: "phpdocumentor/type-resolver 2.0.0 Breaking Changes"
description: "What each phpdocumentor/type-resolver release removed, renamed or changed: 25 breaking changes in 1 version on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/phpdocumentor/type-resolver
last_updated: 2026-12-04
---

# phpdocumentor/type-resolver breaking changes

phpdocumentor/type-resolver 2.0.0 (January 6, 2026) is its newest release with breaking changes, 25 of them. The first: phpdocumentor/type-resolver 2.0.0 requires PHP 7.4 or later. Every breaking API change we have recorded in phpdocumentor/type-resolver on Packagist: 25 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.1.0`, released September 28, 2026. MIT license. [Source repository](https://github.com/phpDocumentor/TypeResolver)

Its 2.0.0 release requires PHP 7.4 or later. [PHP end of life dates](https://since.dev/calendar/php.md).

## phpdocumentor/type-resolver 2.0.0 breaking changes

phpdocumentor/type-resolver 2.0.0, released January 6, 2026: 25 breaking changes.

- **Removed**  

Version 2 requires PHP 7.4 or higher, so PHP 7.3 is no longer supported. [docs.phpdoc.org](https://docs.phpdoc.org/components/type-resolver/guides/upgrade-v1-to-v2.html)
- **Removed** `False_`  

The aliases for True\_ and False\_ were removed. Use the class names that remain. [github.com](https://github.com/phpDocumentor/TypeResolver/releases/tag/2.0.0)
- **Removed** `GenericTemplate`  

The GenericTemplate class was removed in this release. Code that uses it must stop referencing it. [github.com](https://github.com/phpDocumentor/TypeResolver/releases/tag/2.0.0)
- **Removed** `phpDocumentor\Reflection\Types\ClassString`  

ClassString moved to a new namespace. Update imports to use ClassString. [packagist.org](https://packagist.org/packages/phpdocumentor/type-resolver#2.0.0)
- **Removed** `phpDocumentor\Reflection\Types\Collection`  

The Collection type was replaced by Generic. Update code that uses Collection. [packagist.org](https://packagist.org/packages/phpdocumentor/type-resolver#2.0.0)
- **Removed** `phpDocumentor\Reflection\Types\InterfaceString`  

InterfaceString moved to a new namespace. Update imports to use InterfaceString. [packagist.org](https://packagist.org/packages/phpdocumentor/type-resolver#2.0.0)
- **Removed** `phpDocumentor\Reflection\Types\Scalar`  

phpDocumentor\\Reflection\\Types\\Scalar was removed in phpdocumentor/type-resolver 2.0.0 [packagist.org](https://packagist.org/packages/phpdocumentor/type-resolver#2.0.0)
- **Removed** `True_`  

The aliases for True\_ and False\_ were removed. Use the class names that remain. [github.com](https://github.com/phpDocumentor/TypeResolver/releases/tag/2.0.0)
- **Renamed** `Collection`  

Collection was replaced by GenericType. Update code to use GenericType. [github.com](https://github.com/phpDocumentor/TypeResolver/releases/tag/2.0.0)
- **Renamed** `phpDocumentor\Reflection\Types\ArrayKey`  

ArrayKey moved to a new namespace. Update imports to use ArrayKey. [packagist.org](https://packagist.org/packages/phpdocumentor/type-resolver#2.0.0)
- **Renamed** `phpDocumentor\Reflection\Types\False_`  

False\_ moved to a new namespace. Update imports to use False\_. [docs.phpdoc.org](https://docs.phpdoc.org/components/type-resolver/guides/upgrade-v1-to-v2.html)
- **Renamed** `phpDocumentor\Reflection\Types\True_`  

True\_ moved to a new namespace. Update imports to use True\_. [docs.phpdoc.org](https://docs.phpdoc.org/components/type-resolver/guides/upgrade-v1-to-v2.html)
- **Behavior changed** `ClassString`  

ClassString can now take type arguments like other generics. Check code that relied on the old return value. [docs.phpdoc.org](https://docs.phpdoc.org/components/type-resolver/guides/upgrade-v1-to-v2.html)
- **Behavior changed** `InterfaceString`  

InterfaceString can now take type arguments like other generics. Check code that relied on the old return value. [docs.phpdoc.org](https://docs.phpdoc.org/components/type-resolver/guides/upgrade-v1-to-v2.html)
- **Behavior changed** `TraitString`  

TraitString can now take type arguments like other generics. Check code that relied on the old return value. [docs.phpdoc.org](https://docs.phpdoc.org/components/type-resolver/guides/upgrade-v1-to-v2.html)
- **Signature changed** `phpDocumentor\Reflection\PseudoTypes\ArrayShape`  

Was class ArrayShape implements PseudoType; now class ArrayShape extends Array\_ implements PseudoType. [packagist.org](https://packagist.org/packages/phpdocumentor/type-resolver#2.0.0)
- **Signature changed** `phpDocumentor\Reflection\PseudoTypes\ConstExpression`  

Was final class ConstExpression implements PseudoType; now final class ConstExpression extends Mixed\_ implements PseudoType. [packagist.org](https://packagist.org/packages/phpdocumentor/type-resolver#2.0.0)
- **Signature changed** `phpDocumentor\Reflection\PseudoTypes\FloatValue`  

Was class FloatValue implements PseudoType; now class FloatValue extends Float\_ implements PseudoType. [packagist.org](https://packagist.org/packages/phpdocumentor/type-resolver#2.0.0)
- **Signature changed** `phpDocumentor\Reflection\PseudoTypes\IntegerValue`  

Was final class IntegerValue implements PseudoType; now final class IntegerValue extends Integer implements PseudoType. [packagist.org](https://packagist.org/packages/phpdocumentor/type-resolver#2.0.0)
- **Signature changed** `phpDocumentor\Reflection\PseudoTypes\ObjectShape`  

Was final class ObjectShape implements PseudoType; now final class ObjectShape extends Object\_ implements PseudoType. [packagist.org](https://packagist.org/packages/phpdocumentor/type-resolver#2.0.0)
- **Signature changed** `phpDocumentor\Reflection\PseudoTypes\StringValue`  

Was class StringValue implements PseudoType; now class StringValue extends String\_ implements PseudoType. [packagist.org](https://packagist.org/packages/phpdocumentor/type-resolver#2.0.0)
- **Signature changed** `phpDocumentor\Reflection\Types\Callable_::__construct`  

Was public function \_\_construct(array $parameters = \[\], ?Type $returnType = null); now public function \_\_construct(string $identifier = 'callable', array $parameters = \[\], ?Type $returnType = null). [packagist.org](https://packagist.org/packages/phpdocumentor/type-resolver#2.0.0)
- **Signature changed** `phpDocumentor\Reflection\Types\Never_`  

Was final class Never\_ implements Type; now class Never\_ implements Type. [packagist.org](https://packagist.org/packages/phpdocumentor/type-resolver#2.0.0)
- **Signature changed** `phpDocumentor\Reflection\Types\Object_`  

Was final class Object\_ implements Type; now class Object\_ implements Type. [packagist.org](https://packagist.org/packages/phpdocumentor/type-resolver#2.0.0)
- **Signature changed** `phpDocumentor\Reflection\Types\Resource_`  

Was final class Resource\_ implements Type; now class Resource\_ implements Type. [packagist.org](https://packagist.org/packages/phpdocumentor/type-resolver#2.0.0)

## Related packages

- [phpdocumentor/reflection-docblock](https://since.dev/packages/packagist/phpdocumentor/reflection-docblock.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
