feature: support for morphOne

This commit is contained in:
Claas Augner 2021-06-23 19:14:29 +02:00
parent 8fad1256f3
commit 1e4bcccca6

16
stubs/MorphOne.stubphp Normal file
View File

@ -0,0 +1,16 @@
<?php
namespace Illuminate\Database\Eloquent\Relations;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
/**
* @template TRelatedModel of Model
* @template-extends MorphOneOrMany<TRelatedModel>
* @mixin \Illuminate\Database\Eloquent\Builder<TRelatedModel>
*/
class MorphOne extends MorphOneOrMany
{
}