phpdocumentor/type-resolver
Resolves DocBlock types and structural element names per PSR-5. Converts partial class names to fully qualified class names, parses type expressions into value objects, and resolves FQSENs for classes, methods, properties, functions, constants and more.
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:
non-empty-array with generics by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/235Collection with GenericType by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/238GenericTemplate class by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/247IntMaskOfTest::testToString() by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/246True_ and False_ by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/248class-string and interface-string by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/249enum-string by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/252PseudoTypes by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/255Callable by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/258Callable to a string by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/259properties-of and its variations by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/267never-return, never-returns and no-return by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/272open-resource and closed-resource by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/275callable-array by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/276Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.12.0...2.0.0
AbstractList::getOriginalKeyType() method by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/233Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.11.1...1.12.0
[@return](https://github.com/return) annotation for SelfTest::provideToStringData() by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/229OffsetAccess properties private by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/232Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.11.0...1.11.1
key-of, value-of, int-mask, int-mask-of by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/225Static_ and Self_ by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/228.editorconfig by @mspirkov in https://github.com/phpDocumentor/TypeResolver/pull/226Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.10.1...1.11.0
Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.10.0...1.10.1
Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.9.0...1.10.0
Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.8.2...1.9.0
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.
Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.8.1...1.8.2
Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.8.0...1.8.1
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.
Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.7.4...1.8.0
This patch ensures this library works with php-parser v5. Due a conflict in the way both libraries were handling the forward compatibility on php 7.4 for language constructs in php 8+. This patch version should not have any impact on the way you are using the library unless you did use the value of the T_NAME_QUALIFIED and T_NAME_FULLY_QUALIFIED constants, and you are running php 7.4
Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.7.3...1.7.4
Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.7.2...1.7.3
Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.7.1...1.7.2
Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.7.0...1.7.1
This version of the type resolver contains an internal rewrite of the type parser using phpstan/php-doc-parser. This enables a number of features regarding more advanced type resolving. The interface of the library has not been changed. This version should be fully backward compatible.
Please report any regressions when you encounter issues.
Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.6.2...1.7.0
Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.6.1...1.6.2
IntRange by @voku in https://github.com/phpDocumentor/TypeResolver/pull/153Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.6.0...1.6.1
ramsey/composer-install by @jrfnl in https://github.com/phpDocumentor/TypeResolver/pull/144Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.5.1...1.6.0
This version contains various fixes, and adds support for php 8.1 including the new never return type.
See the changelog below for details about this release.
never return type #130 thanks to @jaapiophpDocumentor\Reflection\Types\False_ is replaced by \phpDocumentor\Reflection\PseudoTypes\False_ will be removed in v2phpDocumentor\Reflection\Types\True_ is replaced by \phpDocumentor\Reflection\PseudoTypes\True_ will be removed in v2True and False pseudo-types #14, thanks to @jaapioThis version contains a fixed regression regarding namespace alias interpretation.
This version contains a fixed regression regarding namespace alias interpretation.
This release doesn't contain any new features since the previous release. All methods do have the correct typehints and return types now. The codebase is fully checked with phpstan and psaml.
bump reflection-common dependency to newest beta
How can I help you explore Laravel packages today?