Skip to content

Commit

Permalink
Fix phpdoc return types of Laravel 11 casts method (#985)
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed May 13, 2024
1 parent 0a75a56 commit 8263251
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Models/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Url extends Model
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
* @return array{user_id: 'integer', is_custom: 'boolean'}
*/
protected function casts(): array
{
Expand Down
2 changes: 1 addition & 1 deletion app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class User extends Authenticatable
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
* @return array{email_verified_at: 'datetime', password: 'hashed'}
*/
protected function casts(): array
{
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Visit.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Visit extends Model
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
* @return array{is_first_click: 'boolean'}
*/
protected function casts(): array
{
Expand Down

0 comments on commit 8263251

Please sign in to comment.