Skip to content

Releases: barryvdh/laravel-ide-helper

v2.7.0

22 Apr 11:17
5f677ed
Compare
Choose a tag to compare

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

25 Feb 20:45
edd69c5
Compare
Choose a tag to compare
Allow L7

v2.6.6

02 Dec 15:02
b91b959
Compare
Choose a tag to compare
Create FUNDING.yml

Fix missing method on Monolog2

08 Sep 09:59
Compare
Choose a tag to compare

v2.6.4

03 Sep 17:52
16eb4f6
Compare
Choose a tag to compare
Update readme.md

v2.6.3

03 Sep 17:41
Compare
Choose a tag to compare
fix the identation in the config (#817)

v2.6.2

26 Mar 10:43
Compare
Choose a tag to compare
Support for custom builder classes (#782)

v2.6.1: Make autoload exception more specific (#777)

05 Mar 11:12
Compare
Choose a tag to compare
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)

26 Feb 18:15
Compare
Choose a tag to compare
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.

v2.5.3

19 Dec 12:12
Compare
Choose a tag to compare
prevent loading views if `view` class not in container (#691)