Skip to content

Releases: phpDocumentor/TypeResolver

1.7.4

11 Jan 11:46
8430ca5

Choose a tag to compare

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

  • Update parser token constant values to ints instead of strings by @mukuru-shaun in #197

New Contributors

Full Changelog: 1.7.3...1.7.4

1.7.3

12 Aug 11:07
3219c6e

Choose a tag to compare

Fixed

  • Fix ContextFactory::createForNamespace detects wrong use statement by @maMykola in #192

New Contributors

Full Changelog: 1.7.2...1.7.3

1.7.2

30 May 18:34
b2fe4d2

Choose a tag to compare

Fixes

  • Change underlying type for StringValue pseudo type by @astronom in #189

New Contributors

Full Changelog: 1.7.1...1.7.2

1.7.1

27 Mar 19:03
dfc078e

Choose a tag to compare

Fixes

Full Changelog: 1.7.0...1.7.1

1.7.0

17 Mar 20:04
1534aea

Choose a tag to compare

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

  • Add non-empty-list pseudo-type by @schodemeiss in #183
  • Add callable parameters and return type support by @jaapio
  • Add array shape support by @jaapio

Deprecated

  • Support for nullable type definitions in compound types see: #184

Fixed

Removed

  • Nothing

Security

  • Nothing

New Contributors

Full Changelog: 1.6.2...1.7.0

1.6.2

14 Oct 12:51
48f445a

Choose a tag to compare

Added

Fixed

New Contributors

Full Changelog: 1.6.1...1.6.2

1.6.1

29 Mar 12:43
77a3251

Choose a tag to compare

Fixed

CI

  • GH Actions: version update for various predefined actions by @jrfnl in #159

Full Changelog: 1.6.0...1.6.1

1.6.0

04 Jan 20:02
93ebd00

Choose a tag to compare

Added

  • Add list pseudo-type by @enumag in #136
  • add support for "int<min,max>", "negative-int" and "numeric" by @voku in #139

Deprecated

  • Nothing

Fixed

  • Throw exception on invalid array start by @jaapio in #147
  • GH Actions: version update for ramsey/composer-install by @jrfnl in #144

Removed

  • Nothing

Security

  • Nothing

New Contributors

Full Changelog: 1.5.1...1.6.0

1.5.1

02 Oct 14:18
a12f7e3

Choose a tag to compare

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

17 Sep 16:06
30f38bf

Choose a tag to compare

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

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