Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Type Info Laravel Package

symfony/type-info

Symfony TypeInfo extracts and models PHP type information from reflections and type strings. Resolve scalars, objects, enums, generics, lists, and nullable types via TypeResolver, inspect identifiers and constraints, and stringify types like Collection.

View on GitHub
Deep Wiki
Context7
v8.1.0
v8.1.0-BETA3
v8.1.0-BETA1

Changelog (https://github.com/symfony/type-info/compare/v8.0.9...v8.1.0-BETA1)

  • feature #63528 Resolve tentative return types (@valtzu)
  • feature #62885 Allow resolving object shapes (@bnf)
v8.0.9

Changelog (https://github.com/symfony/type-info/compare/v8.0.7...v8.0.9)

  • bug #63918 Fix collectUses() to support grouped use imports (@Amoifr)
v7.4.9

Changelog (https://github.com/symfony/type-info/compare/v7.4.7...v7.4.9)

  • bug #63918 Fix collectUses() to support grouped use imports (@Amoifr)
v8.0.8
v7.4.8
v8.0.7

Changelog (https://github.com/symfony/type-info/compare/v8.0.6...v8.0.7)

  • bug #63563 Fix StringTypeResolver calling Type::enum() on interfaces extending BackedEnum (@gnutix)
  • bug #63542 Fix resolving class const type (@gharlan)
v7.4.7

Changelog (https://github.com/symfony/type-info/compare/v7.4.6...v7.4.7)

  • bug #63563 Fix StringTypeResolver calling Type::enum() on interfaces extending BackedEnum (@gnutix)
  • bug #63542 Fix resolving class const type (@gharlan)
v8.0.6

Changelog (https://github.com/symfony/type-info/compare/v8.0.5...v8.0.6)

  • bug #63416 TypeContextFactory::collectTemplates now also works with [@phpstan](https://github.com/phpstan)-template and [@psalm](https://github.com/psalm)-template (@TomasLudvik)
  • bug #62738 Fix template key-type for array (@DjordyKoert)
  • bug #63330 Fix nested union null type detection in TypeFactoryTrait::union() (@yoeunes)
  • bug #63329 Fix ArrayShapeType::getExtraValueType() return value (@yoeunes)
v7.4.6

Changelog (https://github.com/symfony/type-info/compare/v7.4.5...v7.4.6)

  • bug #63416 TypeContextFactory::collectTemplates now also works with [@phpstan](https://github.com/phpstan)-template and [@psalm](https://github.com/psalm)-template (@TomasLudvik)
  • bug #62738 Fix template key-type for array (@DjordyKoert)
  • bug #63330 Fix nested union null type detection in TypeFactoryTrait::union() (@yoeunes)
  • bug #63329 Fix ArrayShapeType::getExtraValueType() return value (@yoeunes)
v8.0.4

Changelog (https://github.com/symfony/type-info/compare/v8.0.3...v8.0.4)

  • bug #62997 Fix type resolution when called class is in other namespace (@mtarld)
v7.4.4

Changelog (https://github.com/symfony/type-info/compare/v7.4.3...v7.4.4)

  • bug #62997 Fix type resolution when called class is in other namespace (@mtarld)
v7.3.10

Changelog (https://github.com/symfony/type-info/compare/v7.3.9...v7.3.10)

  • bug #62997 Fix type resolution when called class is in other namespace (@mtarld)
v8.0.1

Changelog (https://github.com/symfony/type-info/compare/v8.0.0...v8.0.1)

  • bug symfony/symfony#62388 [TypeInfo] Simple array should be array type (@matijn-made)
v7.4.1

Changelog (https://github.com/symfony/type-info/compare/v7.4.0...v7.4.1)

  • bug symfony/symfony#62388 [TypeInfo] Simple array should be array type (@matijn-made)
v7.3.8

Changelog (https://github.com/symfony/type-info/compare/v7.3.7...v7.3.8)

  • bug symfony/symfony#62388 [TypeInfo] Simple array should be array type (@matijn-made)
v7.4.0
v7.4.0-RC1
v8.0.0-BETA2
v7.4.0-BETA2
v7.3.5

Changelog (https://github.com/symfony/type-info/compare/v7.3.4...v7.3.5)

  • bug symfony/symfony#62083 [TypeInfo] Fix resolving use statements with line breaks (@ostrolucky)
  • bug symfony/symfony#61964 [PropertyInfo][TypeInfo] Fix resolving constructor type with templates (@HypeMC)
  • bug symfony/symfony#61954 [TypeInfo] Fix type alias with template resolving (@mtarld)
  • bug symfony/symfony#61943 [TypeInfo] ArrayShape can resolve key type as callable instead of string (@Dean151)
v8.0.0-BETA1

Changelog (https://github.com/symfony/type-info/compare/v7.3.4...v8.0.0-BETA1)

  • feature symfony/symfony#61765 [TypeInfo] Add result cache to TypeContextFactory (@landure)
  • feature symfony/symfony#61480 [TypeInfo] Add extra type alias support (@mtarld)
  • feature symfony/symfony#60988 [TypeInfo] Remove deprecated code for non-array based collections (@mttsch)
  • feature symfony/symfony#60639 Bump Symfony 8 to PHP >= 8.4 (@nicolas-grekas)
v7.4.0-BETA1

Changelog (https://github.com/symfony/type-info/compare/v7.3.4...v7.4.0-BETA1)

  • feature symfony/symfony#61765 [TypeInfo] Add result cache to TypeContextFactory (@landure)
  • feature symfony/symfony#61480 [TypeInfo] Add extra type alias support (@mtarld)
v7.3.4

Changelog (https://github.com/symfony/type-info/compare/v7.3.3...v7.3.4)

  • bug symfony/symfony#61728 [TypeInfo] Fix issue with merging union type with a nullable union type (@matijn-made)
v7.3.3

Changelog (https://github.com/symfony/type-info/compare/v7.3.2...v7.3.3)

  • bug symfony/symfony#61543 [TypeInfo] Prevent interfaces extending BackedEnum to be treated as BackedEnums (@ettoredn)
  • bug symfony/symfony#61375 [TypeInfo] Fix converting list to string (@ruudk)
v7.3.2

Changelog (https://github.com/symfony/type-info/compare/v7.3.1...v7.3.2)

  • bug symfony/symfony#61014 [TypeInfo] Reuse CollectionType::mergeCollectionValueTypes for ConstFetchNode (@norkunas)
  • bug symfony/symfony#61004 [TypeInfo] Fix imported-only alias resolving (@mtarld)
  • bug symfony/symfony#60961 [TypeInfo] Fix Type::fromValue with empty array (@norkunas)
  • bug symfony/symfony#60956 [TypeInfo] Fix Type::fromValue incorrectly setting object type instead of enum (@norkunas)
v7.3.1

Changelog (https://github.com/symfony/type-info/compare/v7.3.0...v7.3.1)

  • bug symfony/symfony#60820 [TypeInfo] Fix handling ConstFetchNode (@norkunas)
  • bug symfony/symfony#60909 [TypeInfo] use an EOL-agnostic approach to parse class uses (@xabbuh)
  • bug symfony/symfony#60641 [TypeInfo] Fix type alias resolving (@mtarld)
  • bug symfony/symfony#60632 [TypeInfo] Fix merging collection value types with union types (@mtarld)
  • bug symfony/symfony#60655 [TypeInfo] Handle key-of and value-of types (@mtarld)
v7.2.8

Changelog (https://github.com/symfony/type-info/compare/v7.2.7...v7.2.8)

  • bug symfony/symfony#60820 [TypeInfo] Fix handling ConstFetchNode (@norkunas)
  • bug symfony/symfony#60909 [TypeInfo] use an EOL-agnostic approach to parse class uses (@xabbuh)
  • bug symfony/symfony#60655 [TypeInfo] Handle key-of and value-of types (@mtarld)
v7.3.0
v7.3.0-RC1
v7.3.0-BETA1

Changelog (https://github.com/symfony/type-info/compare/v7.2.6...v7.3.0-BETA1)

  • feature symfony/symfony#60087 [TypeInfo] add TypeFactoryTrait::arrayKey() (@xabbuh)
  • feature symfony/symfony#59981 [TypeInfo] Add ArrayShapeType::$sealed (@mtarld)
  • feature symfony/symfony#59827 [TypeInfo] Add ArrayShapeType class (@mtarld)
  • feature symfony/symfony#59804 [TypeInfo] Add type alias support (@mtarld)
  • feature symfony/symfony#59302 [TypeInfo] Deprecate CollectionType as list and not as array (@mtarld)
  • feature symfony/symfony#59368 [TypeInfo] Add TypeFactoryTrait::fromValue method (@mtarld)
  • feature symfony/symfony#59291 [TypeInfo] Add accepts method (@mtarld)
v7.2.5

Changelog (https://github.com/symfony/type-info/compare/v7.2.4...v7.2.5)

  • bug symfony/symfony#59844 [TypeInfo] Fix isSatisfiedBy not traversing type tree (@mtarld)
  • bug symfony/symfony#59963 [TypeInfo] Fix [@var](https://github.com/var) tag reading for promoted properties (@mtarld)
v7.2.4

Changelog (https://github.com/symfony/type-info/compare/v7.2.3...v7.2.4)

  • bug symfony/symfony#59818 [TypeInfo] Fix create union with nullable type (@mtarld)
  • bug symfony/symfony#59681 [TypeInfo] Fix promoted property phpdoc reading (@mtarld)
v7.2.2

Changelog (https://github.com/symfony/type-info/compare/v7.2.1...v7.2.2)

  • bug symfony/symfony#59271 [TypeInfo] Fix PHPDoc resolving of union with mixed (@mtarld)
  • bug symfony/symfony#59066 Fix resolve enum in string type resolver (@DavidBadura)
v7.1.10

Changelog (https://github.com/symfony/type-info/compare/v7.1.9...v7.1.10)

  • bug symfony/symfony#59066 Fix resolve enum in string type resolver (@DavidBadura)
v7.2.1

Changelog (https://github.com/symfony/type-info/compare/v7.2.0...v7.2.1)

  • bug symfony/symfony#59145 [TypeInfo] Make Type::nullable method no-op on every nullable type (@mtarld)
v7.2.0

Changelog (https://github.com/symfony/type-info/compare/v7.2.0-RC1...v7.2.0)

  • bug symfony/symfony#58885 [PropertyInfo][Serializer][TypeInfo][Validator] TypeInfo 7.1 compatibility (@mtarld)
v7.1.8

Changelog (https://github.com/symfony/type-info/compare/v7.1.7...v7.1.8)

  • bug symfony/symfony#58804 [Serializer][TypeInfo] fix support for phpstan/phpdoc-parser 2 (@xabbuh)
v7.2.0-BETA1

Changelog (https://github.com/symfony/type-info/compare/v7.1.6...v7.2.0-BETA1)

  • feature symfony/symfony#57618 [TypeInfo] Add PhpDocAwareReflectionTypeResolver (@mtarld)
  • feature symfony/symfony#54679 [TypeInfo] Proxies methods to non-nullable and fail gracefully (@mtarld)
v7.1.6
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata