Skip to content

Commit 34fd05b

Browse files
committed
Update PHPDocs for PHPStan 3
1 parent ad32cf0 commit 34fd05b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

app/Http/Resources/BaseResourceCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Illuminate\Pagination\LengthAwarePaginator;
88

99
/**
10-
* @property LengthAwarePaginator $resource
10+
* @property LengthAwarePaginator<self> $resource
1111
*/
1212
class BaseResourceCollection extends ResourceCollection
1313
{

app/Models/Book.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Book extends Model
3535
/**
3636
* The attributes that are mass assignable.
3737
*
38-
* @var array<int, string>
38+
* @var list<string>
3939
*/
4040
protected $fillable = [
4141
'title',

app/Models/Publisher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Publisher extends Model
3737
/**
3838
* The attributes that are mass assignable.
3939
*
40-
* @var array<int, string>
40+
* @var list<string>
4141
*/
4242
protected $fillable = [
4343
'name',

app/Models/User.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class User extends Authenticatable
2020
/**
2121
* The attributes that are mass assignable.
2222
*
23-
* @var array<int, string>
23+
* @var list<string>
2424
*/
2525
protected $fillable = [
2626
'name',
@@ -31,7 +31,7 @@ class User extends Authenticatable
3131
/**
3232
* The attributes that should be hidden for serialization.
3333
*
34-
* @var array<int, string>
34+
* @var list<string>
3535
*/
3636
protected $hidden = [
3737
'password',

0 commit comments

Comments
 (0)