mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2025-03-15 08:43:50 +01:00

[TASK] Simplify some type annotations

Now that we have removed support for TYPO3 11LTS, we can
simplify some type annotations.
This commit is contained in:
Oliver Klee 2025-02-03 18:01:11 +01:00
parent 23027f1370
commit 63dfab654a
No known key found for this signature in database
GPG key ID: E74BB46157AA8FDF

View file

@ -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;