mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2024-11-26 20:34:48 +01:00
feature: support for morphOne
This commit is contained in:
parent
8fad1256f3
commit
1e4bcccca6
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…
Reference in New Issue
Block a user