Skip to content

Commit

Permalink
chore: remove redundant docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Dec 10, 2024
1 parent ab7df40 commit 75bb0d7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/Http/Resources/AuthorResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ class AuthorResource extends JsonResource
*/
public function toArray($request): array
{
/** @var User $this */

return [
'id' => $this->id,
'first_name' => $this->first_name,
Expand Down
2 changes: 0 additions & 2 deletions src/Http/Resources/ListPostResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class ListPostResource extends BaseListPostResource
*/
public function toArray($request): array
{
/** @var Post $this */

return [
'id' => $this->id,

Check failure on line 23 in src/Http/Resources/ListPostResource.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.3

Access to an undefined property CSlant\Blog\Api\Http\Resources\ListPostResource::$id.

Check failure on line 23 in src/Http/Resources/ListPostResource.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.4

Access to an undefined property CSlant\Blog\Api\Http\Resources\ListPostResource::$id.
'name' => $this->name,

Check failure on line 24 in src/Http/Resources/ListPostResource.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.3

Access to an undefined property CSlant\Blog\Api\Http\Resources\ListPostResource::$name.

Check failure on line 24 in src/Http/Resources/ListPostResource.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.4

Access to an undefined property CSlant\Blog\Api\Http\Resources\ListPostResource::$name.
Expand Down
1 change: 0 additions & 1 deletion src/Http/Resources/TagResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class TagResource extends JsonResource
*/
public function toArray($request): array
{
/** @var Tag $this */
return [
'id' => $this->id,
'name' => $this->name,
Expand Down

0 comments on commit 75bb0d7

Please sign in to comment.