You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Command php artisan ide-helper:models do not consider nullable morphs, and recognize such properties as \Illuminate\Database\Eloquent\Model|\Eloquent. Instead it should be of type \Illuminate\Database\Eloquent\Model|\Eloquent|null.
// migrationSchema::create('examples', function (Blueprint$table) {
$table->nullableMorphs('column');
});
// class Examplepublicfunctioncolumn(): MorphTo
{
return$this->morphTo('column');
}
The text was updated successfully, but these errors were encountered:
Summary
Command
php artisan ide-helper:models
do not consider nullable morphs, and recognize such properties as\Illuminate\Database\Eloquent\Model|\Eloquent
. Instead it should be of type\Illuminate\Database\Eloquent\Model|\Eloquent|null
.The text was updated successfully, but these errors were encountered: