Files
barryvdh_laravel-ide-helper/CHANGELOG.md
T
Markus Podar 6a461a7c47 Fix integration tests by fixing a PHP 8.1+ deprecation warnings in ReflectionClass (#1351)
* gha: get more insights when/if logs exist

* Better handle cases when we can receive a concrete instance

The problem with `null` being passed to `ReflectionClass` was always
there but in PHP 8.1+ it triggers a deprecation warnings.

Since having `null` in `$concrete` doesn't make sense to reflect
anything anyway, we just throw a custom exception (which gets caught a
couple lines below) and just carry on.

When using `-v` this can be seen, example:
```
$ ./artisan ide-helper:meta -v
Cannot make 'Faker\Generator': Class 'Faker\Provider\en_US\Barcode' not found.
Cannot make 'Illuminate\Contracts\Auth\Authenticatable': Class  does not exist
Cannot make 'cache.psr6': Class 'Symfony\Component\Cache\Adapter\Psr16Adapter' not found.
Cannot make 'csp-nonce': Class 'Wza3Mf4CXIvCkcp9K3boMUGJoK6S9maO' not found.
Cannot make 'env': Class 'local' not found.
Cannot make 'filesystem.cloud': Disk [s3] does not have a configured driver.
Cannot make 'redis.connection': Redis connection [default] not configured.
A new meta file was written to .phpstorm.meta.php
```

* gha: make sure to run meta with -v to see all output

Helps when debugging things

* Add CHANGELOG.md entry
2022-05-21 22:38:28 +02:00

11 KiB

Changelog

All notable changes to this project will be documented in this file.

Next release

Fixes

  • Handle PHP 8.1 deprecation warnings when passing null to new \ReflectionClass #1351 / mfn

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

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

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!