Fix failing tests for Eloquent relation types in Laravel 9

This commit is contained in:
Martin Zurowietz 2022-04-26 14:08:33 +02:00
parent 48d1c56b46
commit fad8f22771

View File

@ -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 = []) { }
}