mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 10:07:12 +00:00
Fix collection attribute typing
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GenerateMixinCollection\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
class WithCollection extends Model
|
||||
{
|
||||
/**
|
||||
* @return Collection<int, string>
|
||||
*/
|
||||
public function getCollectionAttribute(): Collection
|
||||
{
|
||||
return new Collection();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Collection
|
||||
*/
|
||||
public function getCollectionWithoutTemplateAttribute(): Collection
|
||||
{
|
||||
return new Collection();
|
||||
}
|
||||
|
||||
public function getCollectionWithoutDocBlockAttribute(): Collection
|
||||
{
|
||||
return new Collection();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user