Merge pull request #159 from caugner/add-MorphOne-stub

feature: support for morphOne
This commit is contained in:
feek 2021-06-23 23:04:15 -04:00 committed by GitHub
commit 85f9102206
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
{
}