From 63dfab654a86fd89d5a9ec60eff7ed764fdb8ea9 Mon Sep 17 00:00:00 2001
From: Oliver Klee <typo3-coding@oliverklee.de>
Date: Mon, 3 Feb 2025 18:01:11 +0100
Subject: [PATCH] [TASK] Simplify some type annotations

Now that we have removed support for TYPO3 11LTS, we can
simplify some type annotations.
---
 Classes/Domain/Model/Tea.php | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/Classes/Domain/Model/Tea.php b/Classes/Domain/Model/Tea.php
index c7f4a32..eb7d3fc 100644
--- a/Classes/Domain/Model/Tea.php
+++ b/Classes/Domain/Model/Tea.php
@@ -21,17 +21,11 @@ class Tea extends AbstractEntity
     #[Extbase\Validate(['validator' => 'StringLength', 'options' => ['maximum' => 2000]])]
     protected string $description = '';
 
-    /**
-     * @var FileReference|null
-     * @phpstan-var FileReference|LazyLoadingProxy|null
-     */
     #[Extbase\ORM\Lazy]
-    protected $image;
-
-    // Note: We cannot use `@var` for the more specific type annotation here as this confuses the Extbase type mapper.
+    protected FileReference|LazyLoadingProxy|null $image = null;
 
     /**
-     * @phpstan-var int<0, max>
+     * @var int<0, max>
      */
     protected int $ownerUid = 0;