NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #148 most downloaded on Packagist
Extracts PHP types information.
Latest stable
v8.1.11
Last release 13 days ago
09 Nov 2026
Release timing varies
gaps range from 9 days to 3 months
Nearly every release is documented
notes for 43 of 43 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
59 releases · first in 2024
Drag across the ruler to compare, or tap a release to open it.
Changelog ( v8.2.0-BETA1...v8.2.0-BETA2 )
Changelog (v8.2.0-BETA1...v8.2.0-BETA2)
Type::fromValue() for generators that yield boolean keys (@nicolas-grekas)Type::fromValue() for string keys that name a callable (@nicolas-grekas)UnsupportedException on malformed type strings (@nicolas-grekas)Type::fromValue() with cyclic values (@lazerg)@extends, @implements and @use tags (@nicolas-grekas)Type::map() (@nicolas-grekas)Your coding agent can read these notes before it upgrades. Set up the MCP server →
Changelog ( v8.1.11...v8.2.0-BETA1 )
Changelog (v8.1.11...v8.2.0-BETA1)
GenericType::isIdentifiedBy() (@mtarld)Type::getMismatches() to tell where and why a value is not accepted (@nicolas-grekas)Type::map() (@mtarld)Changelog ( v8.1.10...v8.1.11 )
Changelog (v8.1.10...v8.1.11)
[SECURITY] Security release
bug #67404 Resolve keywords case-insensitively in StringTypeResolver ( @DerManoMann )
Changelog (v8.1.8...v8.1.10)
StringTypeResolver (@DerManoMann)[SECURITY] Security release
bug #66414 Fix infinite recursion on recursive type aliases ( @mtarld )
Changelog (v8.1.5...v8.1.8)
Type::union() with mixed as the only non-null type (@nicolas-grekas)StringTypeResolver (@mtarld)accepts() of union and intersection types (@mtarld)StringTypeResolver (@mtarld)bug #65579 Fix resolving constants defined on interfaces ( @llupa )
Changelog (v8.1.0...v8.1.5)
Changelog (https://github.com/symfony/type-info/compare/v8.1.0-BETA3...v8.1.0) * no significant changes
Changelog (https://github.com/symfony/type-info/compare/v8.1.0-BETA3...v8.1.0)
ObjectShapeType to represent the exact shape of an anonymous objectbug #64299 Harden ObjectShapeType (@nicolas-grekas)
Changelog (https://github.com/symfony/type-info/compare/v8.1.0-BETA1...v8.1.0-BETA3)
feature #63528 Resolve tentative return types (@valtzu)
Changelog (https://github.com/symfony/type-info/compare/v8.0.9...v8.1.0-BETA1)
bug #63918 Fix collectUses() to support grouped use imports (@Amoifr)
Changelog (https://github.com/symfony/type-info/compare/v8.0.7...v8.0.9)
Changelog (https://github.com/symfony/type-info/compare/v8.0.7...v8.0.8) * no significant changes
Changelog (https://github.com/symfony/type-info/compare/v8.0.7...v8.0.8)
bug #63563 Fix StringTypeResolver calling Type::enum() on interfaces extending BackedEnum (@gnutix)
Changelog (https://github.com/symfony/type-info/compare/v8.0.6...v8.0.7)
bug #63416 TypeContextFactory::collectTemplates now also works with @phpstan-template and @psalm-template (@TomasLudvik)
Changelog (https://github.com/symfony/type-info/compare/v8.0.5...v8.0.6)
@phpstan-template and @psalm-template (@TomasLudvik)TypeFactoryTrait::union() (@yoeunes)ArrayShapeType::getExtraValueType() return value (@yoeunes)bug #62997 Fix type resolution when called class is in other namespace (@mtarld)
Changelog (https://github.com/symfony/type-info/compare/v8.0.3...v8.0.4)
bug symfony/symfony#62388 [TypeInfo] Simple array should be array type (@matijn-made)
Changelog (https://github.com/symfony/type-info/compare/v8.0.0...v8.0.1)
Constructing a CollectionType instance as a list that is not an array throws an InvalidArgumentException
Constructing a CollectionType instance as a list that is not an array throws an InvalidArgumentException
Remove the third $asList argument of TypeFactoryTrait::iterable(), use TypeFactoryTrait::list() instead
use Symfony\Component\TypeInfo\Type;
-$type = Type::iterable(Type::string(), asList: true);
+$type = Type::list(Type::string());
Nothing published for this version
Changelog (https://github.com/symfony/type-info/compare/v8.0.0-BETA1...v8.0.0-BETA2) * no significant changes
Changelog (https://github.com/symfony/type-info/compare/v8.0.0-BETA1...v8.0.0-BETA2)
feature symfony/symfony#60988 [TypeInfo] Remove deprecated code for non-array based collections (@mttsch)
Changelog (https://github.com/symfony/type-info/compare/v7.3.4...v8.0.0-BETA1)
TypeContextFactory (@landure)Changelog ( v7.4.22...v7.4.23 )
Changelog (v7.4.22...v7.4.23)
[SECURITY] Security release
Changelog ( v7.4.20...v7.4.22 )
Changelog (v7.4.20...v7.4.22)
StringTypeResolver (@DerManoMann)[SECURITY] Security release
Changelog ( v7.4.17...v7.4.20 )
Changelog (v7.4.17...v7.4.20)
Type::union() with mixed as the only non-null type (@nicolas-grekas)accepts() of union and intersection types (@mtarld)StringTypeResolver (@mtarld)bug #65579 Fix resolving constants defined on interfaces ( @llupa )
Changelog (v7.4.9...v7.4.17)
bug #63918 Fix collectUses() to support grouped use imports (@Amoifr)
Changelog (https://github.com/symfony/type-info/compare/v7.4.7...v7.4.9)
Changelog (https://github.com/symfony/type-info/compare/v7.4.7...v7.4.8) * no significant changes
Changelog (https://github.com/symfony/type-info/compare/v7.4.7...v7.4.8)
bug #63563 Fix StringTypeResolver calling Type::enum() on interfaces extending BackedEnum (@gnutix)
Changelog (https://github.com/symfony/type-info/compare/v7.4.6...v7.4.7)
bug #63416 TypeContextFactory::collectTemplates now also works with @phpstan-template and @psalm-template (@TomasLudvik)
Changelog (https://github.com/symfony/type-info/compare/v7.4.5...v7.4.6)
@phpstan-template and @psalm-template (@TomasLudvik)TypeFactoryTrait::union() (@yoeunes)ArrayShapeType::getExtraValueType() return value (@yoeunes)bug #62997 Fix type resolution when called class is in other namespace (@mtarld)
Changelog (https://github.com/symfony/type-info/compare/v7.4.3...v7.4.4)
bug symfony/symfony#62388 [TypeInfo] Simple array should be array type (@matijn-made)
Changelog (https://github.com/symfony/type-info/compare/v7.4.0...v7.4.1)
Changelog (https://github.com/symfony/type-info/compare/v7.4.0-RC3...v7.4.0) * no significant changes
Changelog (https://github.com/symfony/type-info/compare/v7.4.0-RC3...v7.4.0)
TypeContext and StringTypeResolverChangelog (https://github.com/symfony/type-info/compare/v7.4.0-BETA2...v7.4.0-RC1) * no significant changes
Changelog (https://github.com/symfony/type-info/compare/v7.4.0-BETA2...v7.4.0-RC1)
Changelog (https://github.com/symfony/type-info/compare/v7.4.0-BETA1...v7.4.0-BETA2) * no significant changes
Changelog (https://github.com/symfony/type-info/compare/v7.4.0-BETA1...v7.4.0-BETA2)
feature symfony/symfony#61765 [TypeInfo] Add result cache to TypeContextFactory (@landure)
Changelog (https://github.com/symfony/type-info/compare/v7.3.4...v7.4.0-BETA1)
TypeContextFactory (@landure)bug #62997 Fix type resolution when called class is in other namespace (@mtarld)
Changelog (https://github.com/symfony/type-info/compare/v7.3.9...v7.3.10)
bug symfony/symfony#62388 [TypeInfo] Simple array should be array type (@matijn-made)
Changelog (https://github.com/symfony/type-info/compare/v7.3.7...v7.3.8)
bug symfony/symfony#62083 [TypeInfo] Fix resolving use statements with line breaks (@ostrolucky)
Changelog (https://github.com/symfony/type-info/compare/v7.3.4...v7.3.5)
bug symfony/symfony#61728 [TypeInfo] Fix issue with merging union type with a nullable union type (@matijn-made)
Changelog (https://github.com/symfony/type-info/compare/v7.3.3...v7.3.4)
bug symfony/symfony#61543 [TypeInfo] Prevent interfaces extending BackedEnum to be treated as BackedEnums (@ettoredn)
Changelog (https://github.com/symfony/type-info/compare/v7.3.2...v7.3.3)
bug symfony/symfony#61014 [TypeInfo] Reuse CollectionType::mergeCollectionValueTypes for ConstFetchNode (@norkunas)
Changelog (https://github.com/symfony/type-info/compare/v7.3.1...v7.3.2)
CollectionType::mergeCollectionValueTypes for ConstFetchNode (@norkunas)Type::fromValue with empty array (@norkunas)Type::fromValue incorrectly setting object type instead of enum (@norkunas)bug symfony/symfony#60820 [TypeInfo] Fix handling ConstFetchNode (@norkunas)
Changelog (https://github.com/symfony/type-info/compare/v7.3.0...v7.3.1)
ConstFetchNode (@norkunas)key-of and value-of types (@mtarld)Changelog (https://github.com/symfony/type-info/compare/v7.3.0-RC1...v7.3.0) * no significant changes
Changelog (https://github.com/symfony/type-info/compare/v7.3.0-RC1...v7.3.0)
Type::accepts() methodTypeFactoryTrait::fromValue(), TypeFactoryTrait::arrayShape(), and TypeFactoryTrait::arrayKey() methodsCollectionType instance as a list that is not an array$asList argument of TypeFactoryTrait::iterable(), use TypeFactoryTrait::list() insteadTypeContext and StringTypeResolverCollectionType::mergeCollectionValueTypes() methodArrayShapeType to represent the exact shape of an arrayType::traverse() methodChangelog (https://github.com/symfony/type-info/compare/v7.3.0-BETA2...v7.3.0-RC1) * no significant changes
Changelog (https://github.com/symfony/type-info/compare/v7.3.0-BETA2...v7.3.0-RC1)
feature symfony/symfony#59302 [TypeInfo] Deprecate CollectionType as list and not as array (@mtarld)
Changelog (https://github.com/symfony/type-info/compare/v7.2.6...v7.3.0-BETA1)
ArrayShapeType::$sealed (@mtarld)ArrayShapeType class (@mtarld)CollectionType as list and not as array (@mtarld)TypeFactoryTrait::fromValue method (@mtarld)accepts method (@mtarld)bug symfony/symfony#60820 [TypeInfo] Fix handling ConstFetchNode (@norkunas)
Changelog (https://github.com/symfony/type-info/compare/v7.2.7...v7.2.8)
ConstFetchNode (@norkunas)key-of and value-of types (@mtarld)bug symfony/symfony#59844 [TypeInfo] Fix isSatisfiedBy not traversing type tree (@mtarld)
Changelog (https://github.com/symfony/type-info/compare/v7.2.4...v7.2.5)
isSatisfiedBy not traversing type tree (@mtarld)@var tag reading for promoted properties (@mtarld)bug symfony/symfony#59818 [TypeInfo] Fix create union with nullable type (@mtarld)
Changelog (https://github.com/symfony/type-info/compare/v7.2.3...v7.2.4)
bug symfony/symfony#59271 [TypeInfo] Fix PHPDoc resolving of union with mixed (@mtarld)
Changelog (https://github.com/symfony/type-info/compare/v7.2.1...v7.2.2)
bug symfony/symfony#59145 [TypeInfo] Make Type::nullable method no-op on every nullable type (@mtarld)
Changelog (https://github.com/symfony/type-info/compare/v7.2.0...v7.2.1)
Type::nullable method no-op on every nullable type (@mtarld)bug symfony/symfony#58885 [PropertyInfo][Serializer][TypeInfo][Validator] TypeInfo 7.1 compatibility (@mtarld)
Changelog (https://github.com/symfony/type-info/compare/v7.2.0-RC1...v7.2.0)
BackedEnumType, CollectionType, GenericType, IntersectionType, and UnionTypeTypeIdentifier::isStandalone(), TypeIdentifier::isScalar(), and TypeIdentifier::isBool() methodsWrappingTypeInterface and CompositeTypeInterface type interfacesNullableType type classType::isA() to Type::isIdentifiedBy() and Type::is() to Type::isSatisfiedBy()Type::__call()Type::getBaseType(), use WrappingTypeInterface::getWrappedType() insteadType::asNonNullable(), use NullableType::getWrappedType() insteadCompositeTypeTraitPhpDocAwareReflectionTypeResolver resolver@internal anymore@experimental anymoreNothing published for this version
feature symfony/symfony#57618 [TypeInfo] Add PhpDocAwareReflectionTypeResolver (@mtarld)
Changelog (https://github.com/symfony/type-info/compare/v7.1.6...v7.2.0-BETA1)
PhpDocAwareReflectionTypeResolver (@mtarld)bug symfony/symfony#59066 Fix resolve enum in string type resolver (@DavidBadura)
Changelog (https://github.com/symfony/type-info/compare/v7.1.9...v7.1.10)
bug symfony/symfony#58804 [Serializer][TypeInfo] fix support for phpstan/phpdoc-parser 2 (@xabbuh)
Changelog (https://github.com/symfony/type-info/compare/v7.1.7...v7.1.8)
Changelog (https://github.com/symfony/type-info/compare/v7.1.5...v7.1.6) * no significant changes
Changelog (https://github.com/symfony/type-info/compare/v7.1.5...v7.1.6)
bug symfony/symfony#58259 [TypeInfo] Return bound type as base type in TemplateType (@valtzu)
Changelog (https://github.com/symfony/type-info/compare/v7.1.4...v7.1.5)
TemplateType (@valtzu)Changelog (https://github.com/symfony/type-info/compare/v7.1.0...v7.1.1) * no significant changes
Changelog (https://github.com/symfony/type-info/compare/v7.1.0...v7.1.1)
Changelog (https://github.com/symfony/type-info/compare/v7.1.0-RC1...v7.1.0) * no significant changes
Changelog (https://github.com/symfony/type-info/compare/v7.1.0-RC1...v7.1.0)
Changelog (https://github.com/symfony/type-info/compare/v7.1.0-BETA1...v7.1.0-RC1) * no significant changes
Changelog (https://github.com/symfony/type-info/compare/v7.1.0-BETA1...v7.1.0-RC1)
feature symfony/symfony#53160 [PropertyInfo] Deprecate PropertyInfo Type (@mtarld)
Changelog (https://github.com/symfony/type-info/compare/v7.0.7...v7.1.0-BETA1)
One column per month.