Files
barryvdh_laravel-ide-helper/CHANGELOG.md
T
Matthew Hailwood b3a79fe6c1 Allow casts with a return type of static or this to reference themselves (#1103)
* Allow casts with a return type of static or this to reference themselves

Supports

```php
/**
     * @param $model
     * @param string $key
     * @param $value
     * @param array $attributes
     * @return static
     */
    public function get($model, string $key, $value, array $attributes)
    {
        return new static($value);
    }
```

or

```php
/**
     * @param $model
     * @param string $key
     * @param $value
     * @param array $attributes
     * @return $this
     */
    public function get($model, string $key, $value, array $attributes)
    {
        return new static($value);
    }
```

* Update CHANGELOG.md
2020-12-04 07:33:45 +01:00

5.1 KiB

Changelog

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

Next release

Added

Changed

Fixed

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!