mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-17 17:47:13 +00:00
* 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
5.1 KiB
5.1 KiB
Changelog
All notable changes to this project will be documented in this file.
Next release
Added
- Fix phpdoc generate for custom cast with parameter #986 / artelkr
- Created a possibility to add custom relation type #987 / efinder2
- Added
@seewith macro/mixin definition location to PhpDoc #1054 / riesjart - Initial compatibility for PHP8 #1106 / mfn
Changed
- Implement DeferrableProvider #914 / kon-shou
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] (https://github.com/barryvdh/laravel-ide-helper/pull/1066)
- Casts with a return type of
staticor$thisnow resolve to an instance of the cast #1103 / riesjart
2020-09-07, 2.8.1
Added
- Support Laravel 8 #1022 / barryvdh
- Add option to force usage of FQN #1031 / edvordo
- Add support for macros of all macroable classes #1006 / domkrm
2020-08-11, 2.8.0
Added
- Add static return type to builder methods #924 / dmason30
- Add
optonalto meta generator for PhpStorm #932 / halaei - Decimal columns as string in Models #948 / fgibaux
- Simplify full namespaces for already included resources #954 / LANGERGabriel
- Make writing relation count properties optional #969 / AegirLeet
- Add more methods able to resolve container instances #996 / mfn
Fixed
- Test
authis bound before detect Auth driver #946 / zhwei - Fix inline doc-block for final models #944 / Gummibeer
2020-04-22, 2.7.0
Added
- Add
ignored_modelsas config option #890 / pataar - Infer return type from reflection if no phpdoc given #906 / mfn
- Add custom collection support for get and all methods #903 / dmason30
- if a model implements interfaces, include them in the stub #920 / mr-feek
- Generate noinspections PHPStorm tags #905 / mzglinski
- Added support for Laravel 7 custom casts #913 / belamov
- Ability to use patterns for model_locations #921 / 4n70w4
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
- Support for Laravel 7 commit by barryvdh
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
- Prevent undefined property errors #877 / matt-allan
Missing an older changelog? Feel free to submit a PR!