Skip to content

Latest commit

 

History

History
442 lines (277 loc) · 23.9 KB

CHANGELOG.md

File metadata and controls

442 lines (277 loc) · 23.9 KB

Changelog

v3.5.2 - 2025-01-06

Fixes

Fix empty/anonymous closure in meta command.

Full Changelog: https://github.com/barryvdh/laravel-ide-helper/compare/v3.5.1...v3.5.2

v3.5.1 - 2025-01-06

What's Changed

  • Remove duplicate config, fix ->can() by @barryvdh in #1650

Full Changelog: https://github.com/barryvdh/laravel-ide-helper/compare/v3.5.0...v3.5.1

v3.5.0 - 2025-01-06

What's Changed

  • Add phpstorm meta argument hints by @barryvdh in #1640
  • Add meta override for user return types by @barryvdh in #1642
  • Use forked ContextFactory by @barryvdh in #1643
  • Remove php parser by @barryvdh in #1644
  • Also add eloquent template tags from base class by @barryvdh in #1645
  • Add more metadata by @barryvdh in #1646
  • Fixed generating PHPDoc for methods with class templates by @chack1172 in #1647
  • Feat guess macro types by @barryvdh in #1648
  • Allow adding custom Macroable classes. by @mathieutu in #1629
  • Add special dev to composer keywords by @jnoordsij in #1649

New Contributors

  • @chack1172 made their first contribution in #1647
  • @mathieutu made their first contribution in #1629
  • @jnoordsij made their first contribution in #1649

Full Changelog: https://github.com/barryvdh/laravel-ide-helper/compare/v3.4.0...v3.5.0

v3.4.0 - 2024-12-29

What's Changed

  • fix: add @template TModel of static for Eloquent by @imzyf in #1631
  • Add templates to Eloquent by @barryvdh in #1634
  • Update testsuite for Generator, simplify service provider and mock by @barryvdh in #1635
  • Add option for only eloquent by @barryvdh in #1636
  • Add weak generics for array type objects by @LauJosefsen in #1621
  • Make all "note" in README apply quote style by @hms5232 in #1590
  • Update README.md by @Mtillmann in #1587
  • Rename view var by @barryvdh and @pb30 in #1637 and #1563
  • Format IDE helper by @barryvdh in #1638
  • Add TLDR section, update options by @barryvdh in #1639

New Contributors

  • @imzyf made their first contribution in #1631
  • @LauJosefsen made their first contribution in #1621
  • @hms5232 made their first contribution in #1590
  • @Mtillmann made their first contribution in #1587
  • @pb30 made their first contribution in #1563

Full Changelog: https://github.com/barryvdh/laravel-ide-helper/compare/v3.3.0...v3.4.0

v3.3.0 - 2024-12-18

What's Changed

  • Feature: Add Config Option to Enforce Nullable Relationships by @jeramyhing in #1580
  • Improve replacement of return type for methods from Query\Builder by @pjio in #1575
  • Update CHANGELOG.md, fix typo(s) by @NicholasWilsonDEV in #1613
  • Fixed PHP 8.4 deprecation warning by @eusonlito in #1622
  • Fix PHP 8.4 deprecations by @JeppeKnockaert in #1618
  • Assign $output method parameter to $this->output on Generator by @eusonlito in #1623

New Contributors

  • @jeramyhing made their first contribution in #1580
  • @pjio made their first contribution in #1575
  • @NicholasWilsonDEV made their first contribution in #1613
  • @eusonlito made their first contribution in #1622

Full Changelog: https://github.com/barryvdh/laravel-ide-helper/compare/v3.2.2...v3.3.0

v3.2.2 - 2024-10-29

What’s Changed

  • fix(pivot): only use unique classes in the pivot union (Fixes #1606) (#1607) @pataar
  • docs(pr): remove the changelog checklist item (#1608) @pataar
  • Create update-changelog.yaml (#1605) @barryvdh

Full Changelog: https://github.com/barryvdh/laravel-ide-helper/compare/v3.2.1...v3.2.2

3.2.1 - 2024-10-28

What's Changed

  • chore: Fix the description of unused option by @KentarouTakeda in #1600
  • feat(pivot): add support for multiple pivot types when using the same accessor by @pataar in #1597
  • Add support for AsCollection::using and AsEnumCollection::of casts by @uno-sw in #1577
  • Smarter reset by @barryvdh in #1603
  • feat: use numeric type on fields with decimal casts by @ekisu in #1583

New Contributors

  • @uno-sw made their first contribution in #1577
  • @ekisu made their first contribution in #1583

Full Changelog: https://github.com/barryvdh/laravel-ide-helper/compare/v3.2.0...v3.2.1

3.2.0 - 2024-10-18

Fixed

  • Fix type of hashed model property to string

Changed

  • Update view "version" variable name to avoid potential conflicts

  • Add support for EloquentBuilder generics introduced in Laravel 11.15.

  • Drop support for Laravel versions earlier than 11.15.

Added

  • Introduce enforce_nullable_relationships configuration option to control how nullable Eloquent relationships are enforced during static analysis. This provides flexibility for scenarios where application logic ensures data integrity without relying on database constraints. #1580 / jeramyhing

  • Add support for AsCollection::using and AsEnumCollection::of casts #1577 / uno-sw

3.1.0 - 2024-07-12

Fixed

Added

3.0.0 - 2024-03-01

Added

Changed

Removed

  • Support for Laravel 9 and use of doctrine/dbal #1512 / barryvdh With this functionality gone, a few changes have been made:
    • support for custom datatypes has been dropped (config custom_db_types) unknown data types default to string now and to fix the type, add a proper cast in Eloquent
    • You might have top-level dependency on doctrine/dbal. This may have been in the past due to ide-helper, we suggest to check if you still need it and remove it otherwise
    • Minimum PHP version, due to Laravel 10, is now PHP 8.1

2024-02-15, 2.15.1

Fixed

Changed

Added

2024-02-14, 2.15.0

Fixed

Changed

Added

2024-02-05, 2.14.0

Changed

  • Official support for Lumen has been dropped #1425 / mfn
  • Refactor resolving of null information for custom casted attribute types #1330 / wimski

Fixed

Added

2023-02-04, 2.13.0

Fixed

  • Fix return type of methods provided by SoftDeletes #1345 / KentarouTakeda
  • Handle PHP 8.1 deprecation warnings when passing null to new \ReflectionClass #1351 / mfn
  • Fix issue where \Eloquent is not included when using write_mixin #1352 / Jefemy
  • Fix model factory method arguments for Laravel >= 9 #1361 / wimski
  • Improve return type of mock helper methods in tests #1405 / bentleyo
  • Fix Castable class if failed to detect it from return types #1388 / kwarcu

Added

2022-03-06, 2.12.3

Fixed

  • Fix date and datetime handling for attributes that set a serialization format option for the Carbon instance #1324 / FLeudts
  • Fix composer conflict with composer/pcre version 2/3. #1327 / barryvdh

2022-02-08, 2.12.2

Fixed

2022-01-24, 2.12.1

Fixed

2022-01-23, 2.12.0

Added

  • Add support for custom casts that using Castable #1287 / binotaliu
  • Added Laravel 9 support #1297 / rcerljenko
  • Added option additional_relation_return_types for custom relations that don't fit the typical naming scheme

2022-01-03, 2.11.0

Added

  • Add support for Laravel 8.77 Attributes #1289 / SimonJnsson
  • Add support for cast types decimal:*, encrypted:*, immutable_date, immutable_datetime, custom_datetime, and immutable_custom_datetime #1262 / miken32
  • Add support of variadic parameters in ide-helper:models #1234 / shaffe-fr
  • Add support of custom casts without properties #1267 / sparclex

Fixed

Changed

2021-06-18, 2.10.1

Added

Fixed

  • Fixing issue where configured custom_db_types could cause a DBAL exception to be thrown while running ide-helper:models #1228 / wimski

2021-04-09, 2.10.0

Added

  • Allowing Methods to be set or unset in ModelHooks #1198 / jenga201 Note: the visibility of \Barryvdh\LaravelIdeHelper\Console\ModelsCommand::setMethod has been changed to public!

Fixed

  • Fixing issue where incorrect autoloader unregistered #1210 / tezhm

2021-04-02, 2.9.3

Fixed

  • Support both customized namespace factories as well as default resolvable ones #1201 / wimski

2021-04-01, 2.9.2

Added

  • Model hooks for adding custom information from external sources to model classes through the ModelsCommand #945 / wimski

Fixed

2021-03-15, 2.9.1

Added

Fixed

2020-12-30, 2.9.0

Changed

  • Dropped support for Laravel 6 and Laravel 7, as well as support for PHP 7.2 and added support for doctrine/dbal:^3 #1114 / mfn

Fixed

2020-12-08, 2.8.2

Added

Changed

Fixed

  • Compatibility with Lumen #1043 / mfn
  • Allow model_locations to have glob patterns #1059 / saackearl
  • Error when generating helper for macroable classes which are not facades and contain a "fake" method [#1066 / domkrm] (#1066)
  • Casts with a return type of static or $this now resolve to an instance of the cast #1103 / riesjart

Removed

  • Removed format and broken generateJsonHelper #1053 / mfn

2020-09-07, 2.8.1

Added

2020-08-11, 2.8.0

Added

Fixed

2020-04-22, 2.7.0

Added

Fixed

  • MorphToMany relations with query not working #894 / UksusoFF
  • Fix camelCase duplicated properties generator #881 / bop10
  • Prevent generation of invalid code for certain parameter default values #901 / loilo
  • Make hasOne and morphOne nullable #864 / leo108
  • Remove unnecessary and wrong definition of SoftDelete methods #918 / mfn
  • Unregister meta command custom autoloader when it is no longer needed #919 / mr-feek

2020-02-25, 2.6.7

Added

2019-12-02, 2.6.6

Added

  • Add splat operator (...) support #860 / ngmy
  • Add support for custom date class via Date::use() #859 / mfn

Fixed


Missing an older changelog? Feel free to submit a PR!