mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2024-11-30 04:39:01 +01:00
Fix failing tests for Eloquent relation types in Laravel 9
This commit is contained in:
parent
48d1c56b46
commit
fad8f22771
@ -66,4 +66,20 @@ abstract class HasOneOrMany extends Relation
|
||||
* @psalm-return \Illuminate\Database\Eloquent\Collection<TRelatedModel>
|
||||
*/
|
||||
public function createMany(array $records) { }
|
||||
|
||||
/**
|
||||
* @param array $attributes
|
||||
* @param array $values
|
||||
* @return \Illuminate\Database\Eloquent\Model
|
||||
* @psalm-return TRelatedModel
|
||||
*/
|
||||
public function firstOrNew(array $attributes = [], array $values = []) { }
|
||||
|
||||
/**
|
||||
* @param array $attributes
|
||||
* @param array $values
|
||||
* @return \Illuminate\Database\Eloquent\Model
|
||||
* @psalm-return TRelatedModel
|
||||
*/
|
||||
public function firstOrCreate(array $attributes = [], array $values = []) { }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user