Skip to content

Commit

Permalink
Prefer phpstan annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Sep 10, 2024
1 parent 28eb711 commit e032d60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Model/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ abstract class Media implements MediaInterface, \Stringable
protected Collection $galleryItems;

/**
* @var CategoryInterface|null
* @phpstan-var CategoryInterface|null
*/
protected ?object $category = null;

Expand Down
4 changes: 2 additions & 2 deletions src/Model/MediaInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ public function setSize(?int $size): void;
public function getSize(): ?int;

/**
* @return CategoryInterface|null
* @phpstan-return CategoryInterface|null
*/
public function getCategory(): ?object;

/**
* @param CategoryInterface|null $category
* @phpstan-param CategoryInterface|null $category
*/
public function setCategory(?object $category = null): void;

Expand Down

0 comments on commit e032d60

Please sign in to comment.