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 Resolver Laravel Package

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.

View on GitHub
Deep Wiki
Context7
2.0.0

2.0.0

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:

Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.12.0...2.0.0

1.12.0
1.11.1

What's Changed

Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.11.0...1.11.1

1.11.0

What's Changed

Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.10.1...1.11.0

1.10.0
1.9.0

What's Changed

Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.8.2...1.9.0

1.8.2

What's Changed

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.

New Contributors

Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.8.1...1.8.2

1.8.0

What's Changed

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.

New Contributors

Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.7.4...1.8.0

1.7.4

What's Changed

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

New Contributors

Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.7.3...1.7.4

1.7.3

Fixed

New Contributors

Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.7.2...1.7.3

1.7.2

Fixes

New Contributors

Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.7.1...1.7.2

1.7.0

What's Changed

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.

Added

Deprecated

Fixed

Removed

  • Nothing

Security

  • Nothing

New Contributors

Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.6.2...1.7.0

1.6.1
1.6.0

Added

Deprecated

  • Nothing

Fixed

Removed

  • Nothing

Security

  • Nothing

New Contributors

Full Changelog: https://github.com/phpDocumentor/TypeResolver/compare/1.5.1...1.6.0

1.5.1

Added

  • add support for literal-string, thanks to @voku
  • fix "PseudoType" for ArrayKey, thanks to @voku

Deprecated

  • Nothing

Fixed

  • fix "RuntimeException" for "array-key" and for "class-string", thanks to @voku

Removed

  • Nothing

Security

  • Nothing
1.5.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.

Added

  • support psalm scalar types #112, thanks to @smoench
  • support for never return type #130 thanks to @jaapio

Deprecated

  • Nothing

Fixed

  • Update .gitattributes #115, thanks to @KasperFranz
  • Do not include composer.lock in distribution #118 @kubawerlos
  • Allow manual trigger of github actions #120, thanks to @jrfnl
  • fix array-offset via "isset"-call #104, thanks to @voku
  • GH Actions: simplify Composer caching #121, thanks to @jrfnl
  • Tests/ArrayKeyTest: fix incorrect @uses tag #122 thanks to @jrfnl
  • GH Actions: actually run the tests on PHP 8.0 + 8.1 #123 thanks to @jrfnl
  • CS update after upstream changes #124, thanks to @jrfnl
  • GH Actions: don't allow builds against PHP 8.1 to fail #125 @jrfnl

Removed

  • Nothing

Security

  • Nothing
1.4.0

Added

  • Improved Pseudo type support #113, thanks to @mvriel

Deprecated

  • phpDocumentor\Reflection\Types\False_ is replaced by \phpDocumentor\Reflection\PseudoTypes\False_ will be removed in v2
  • phpDocumentor\Reflection\Types\True_ is replaced by \phpDocumentor\Reflection\PseudoTypes\True_ will be removed in v2

Fixed

  • fix parsing tokens #114, thanks to @xabbuh

Removed

  • Nothing

Security

  • Nothing
1.3.0

Added

  • Add php 8 support #110 , thanks to @jaapio

Deprecated

  • Nothing

Fixed

  • Nothing

Removed

  • Nothing

Security

  • Nothing
1.2.0

Added

  • Add support for True and False pseudo-types #14, thanks to @jaapio

Deprecated

  • Nothing

Fixed

  • Nothing

Removed

  • Nothing

Security

  • Nothing
1.1.0

Added

  • Add collection syntax support for iterable, #80 thanks to @julienfalque
  • Added support for class-string and class-string<Type> types, #90 thanks to @othercorey
  • Deduplicate double entries in a compound thanks to @mvriel
  • Type coverage improvements, thanks to @orklah
  • BC check in ci, thanks to @jaapio

Deprecated

  • Nothing

Fixed

  • Infinite loop could occur when no closing use token found, thanks to @mvriel

Removed

  • Nothing

Security

  • Nothing
1.0.1

This version contains a fixed regression regarding namespace alias interpretation.

Added

  • Nothing

Deprecated

  • Nothing

Fixed

  • Fixed #76 ContextFactory incorrect namespace aliases, thanks to @piku235

Removed

  • Nothing

Security

  • Nothing
0.7.2

This version contains a fixed regression regarding namespace alias interpretation.

Added

  • Nothing

Deprecated

  • Nothing

Fixed

  • Fixed #76 ContextFactory incorrect namespace aliases, thanks to @piku235

Removed

  • Nothing

Security

  • Nothing
1.0.0

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.

Added

  • QA pipeline

Deprecated

  • Nothing

Fixed

  • Nothing

Removed

  • Nothing

Security

  • Nothing
0.7.1

Added

  • Nothing

Deprecated

  • Nothing

Fixed

  • Throw exception on unclosed array in type notation

Removed

  • Nothing

Security

  • Nothing
0.7.0

Added

  • Support for grouped use statements #64 thanks to @ragboyjr

Deprecated

  • Nothing

Fixed

  • Nothing

Removed

  • Nothing

Security

  • Nothing
0.6.3

bump reflection-common dependency to newest beta

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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport