rentalhost / laravel-insight

IDEA plugin to works with Laravel Framework.
MIT License
27 stars 6 forks source link

Eloquent\Model: match @property annotation type #8

Closed rentalhost closed 7 years ago

rentalhost commented 7 years ago

Eg.

class User extends Eloquent\Model 
{
    protected $casts = [
        "some_property" => "int"
    ];
}

Requires: @property int $some_property Should accept: @property int|null $some_property Should accept: @property int|anything $some_property


To consider:

rentalhost commented 7 years ago

Forgotten item: should consider any $dates properties as Carbon\Carbon too.