[phpStan] Illuminate\Database\Eloquent\Model::$id.
getting the error on phpstan
level 2 only which drive me crazy!!!!
the code is from
and I cant change the signiter of the function
and adding
Company|Model
wont help!
should phpstan with larastan recognize the default laravel model attributes like id?
4 Replies
another area where I got the same error
Filament::getTenant()?->id
how I can define the type of the class?
ofc adding:
* @property int $id
didnt help!I solve the getTenant issue in phpstan by assigning it to a variable like this:
still the same for me, that is why I feel somthing else is wrong!
give me
Access to an undefined property Illuminate\Database\Eloquent\Model::$id
did you find a workaround ?