From e032d60c4062ab1bf03a5478acf5bef6cf440544 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Tue, 10 Sep 2024 17:15:50 +0200 Subject: [PATCH] Prefer phpstan annotation --- src/Model/Media.php | 2 +- src/Model/MediaInterface.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Model/Media.php b/src/Model/Media.php index 4c386eebe..49d218a3a 100644 --- a/src/Model/Media.php +++ b/src/Model/Media.php @@ -78,7 +78,7 @@ abstract class Media implements MediaInterface, \Stringable protected Collection $galleryItems; /** - * @var CategoryInterface|null + * @phpstan-var CategoryInterface|null */ protected ?object $category = null; diff --git a/src/Model/MediaInterface.php b/src/Model/MediaInterface.php index 83c464b1a..24d1d5a59 100644 --- a/src/Model/MediaInterface.php +++ b/src/Model/MediaInterface.php @@ -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;