Releases: phpDocumentor/TypeResolver
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:
- Add support for
non-empty-arraywith generics by @mspirkov in #235 - Fix the conversion of lists to strings by @mspirkov in #237
- Replace
CollectionwithGenericTypeby @mspirkov in #238 - Refactor pseudo-types by @mspirkov in #241
- Analyze tests using PHPStan by @mspirkov in #240
- Remove/phpstan v1 parser by @jaapio in #239
- Remove
GenericTemplateclass by @mspirkov in #247 - Fix
IntMaskOfTest::testToString()by @mspirkov in #246 - Remove aliases for
True_andFalse_by @mspirkov in #248 - Update dev dependencies by @mspirkov in #245
- Add support for compound FQSEN to
class-stringandinterface-stringby @mspirkov in #249 - Add support for any array keys by @mspirkov in #236
- Add docs for v1 to v2 migration by @jaapio in #250
- Add support for trait string types by @jaapio in #251
- Add support for
enum-stringby @mspirkov in #252 - Fix PHPUnit coverage report generation by @mspirkov in #253
- Refactor pseudo-types by @mspirkov in #254
- Add 100% test coverage for
PseudoTypesby @mspirkov in #255 - Add identifier to the
Callableby @mspirkov in #258 - Improve the conversion of
Callableto a string by @mspirkov in #259 - Increase test coverage to 96% by @mspirkov in #260
- Refactor types by @mspirkov in #261
- Add support for
properties-ofand its variations by @mspirkov in #267 - Add support for more pseudo-types by @mspirkov in #271
- Improve the conversion of lists to strings by @mspirkov in #273
- Add support for
never-return,never-returnsandno-returnby @mspirkov in #272 - Add support for
open-resourceandclosed-resourceby @mspirkov in #275 - Add support for
callable-arrayby @mspirkov in #276 - Improve the conversion of arrays to strings by @mspirkov in #274
Full Changelog: 1.12.0...2.0.0
1.12.0
1.11.1
1.11.0
What's Changed
- Add support for conditional types, offset access types and
key-of,value-of,int-mask,int-mask-ofby @mspirkov in #225 - Add support for generics in
Static_andSelf_by @mspirkov in #228 - Add
.editorconfigby @mspirkov in #226 - Exclude commits with CS changes from Git Blame by @mspirkov in #227
Full Changelog: 1.10.1...1.11.0
1.10.1
What's Changed
- Correct documentation reference by @DannyvdSluijs in #216
- Fix handling of array shapes without keys by @mspirkov in #224
New Contributors
- @DannyvdSluijs made their first contribution in #216
- @mspirkov made their first contribution in #224
Full Changelog: 1.10.0...1.10.1
1.10.0
1.9.0
What's Changed
- Add support for non-empty-array notation by @jaapio in #206
- Add support for object and list shape types by @jaapio in #207
- Bump phpDocumentor/.github from 0.5.0 to 0.7 by @dependabot in #209
- build on php 8.4 by @jaapio in #210
Full Changelog: 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.
- Be able to run examples whatever current directory is by @llaville in #201
- Downgrade to php 7.3 by @jaapio in #203
New Contributors
Full Changelog: 1.8.1...1.8.2
1.8.1
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.
- Add getter to ArrayShape by @antoinelame in #194
New Contributors
- @antoinelame made their first contribution in #194
Full Changelog: 1.7.4...1.8.0