Releases: barryvdh/laravel-ide-helper
Releases · barryvdh/laravel-ide-helper
v2.7.0
Lots of tweaks/improvements, big thanks to @mfn for the help and bringing the Test Suite up to date!
- Generate noinspections PHPStorm tags (option) #905
- Added support for Laravel 7 custom casts #913
- Ability to use patterns for model_locations #921
- Prevent generation of invalid code for certain parameter default values #901
- Infer return type from reflection if no phpdoc given #906
- if a model implements interfaces, include them in the stub #920
- fix: unregister meta command custom autoloader when it is no longer needed #919
- Remove unnecessary and wrong definition of SoftDelete methods #918
- Add custom collection support for get and all methods #903
- Make hasOne and morphOne nullable. #864
- Add ignored_models as config option #890
- Fix camelCase duplicated properties generator. #881
v2.6.7
v2.6.6
Fix missing method on Monolog2
v2.6.5 Fix CS
v2.6.4
v2.6.3
v2.6.2
v2.6.1: Make autoload exception more specific (#777)
This is a nice-to-have ([as I'm currently overriding it](https://github.com/psalm/laravel-psalm-plugin/commit/a700c89061d151d1c08851abd93d834f9183534d)), but might help other packages.
v2.6.0: Add support for invokable classes as macro function (#765)
Macros can be used with invokable classes, like so. ``` <?php namespace App\Providers; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\Response; class ResponseMacroServiceProvider extends ServiceProvider { public function boot() { Response::macro('foo', new Foo()); } } class Foo { public function __invoke() { return 'foobar'; } } ``` When running `ide-helper:generate` the following fatal error was thrown. ``` Symfony\Component\Debug\Exception\FatalThrowableError : ReflectionFunction::__construct() expects parameter 1 to be string, object given``` This commit fixes this error.