mirror of
https://github.com/flarum/core.git
synced 2025-08-07 00:47:00 +02:00
feat: STUBS!
This commit is contained in:
24
php-packages/phpstan/stubs/Illuminate/Database/Relation.stub
Normal file
24
php-packages/phpstan/stubs/Illuminate/Database/Relation.stub
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Database\Eloquent\Relations;
|
||||
|
||||
/**
|
||||
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
|
||||
*/
|
||||
class Relation
|
||||
{
|
||||
/**
|
||||
* Execute the query as a "select" statement.
|
||||
*
|
||||
* @param array<int, string> $columns
|
||||
* @phpstan-return \Illuminate\Database\Eloquent\Collection<TRelatedModel>
|
||||
*/
|
||||
public function get($columns = ['*']);
|
||||
|
||||
|
||||
/**
|
||||
* @param array<model-property<TRelatedModel>, mixed> $attributes
|
||||
* @phpstan-return TRelatedModel
|
||||
*/
|
||||
public function make(array $attributes = []);
|
||||
}
|
Reference in New Issue
Block a user