mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2025-01-22 21:31:21 +01:00
Merge pull request #159 from caugner/add-MorphOne-stub
feature: support for morphOne
This commit is contained in:
commit
85f9102206
16
stubs/MorphOne.stubphp
Normal file
16
stubs/MorphOne.stubphp
Normal 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
|
||||
{
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user