mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2025-04-17 16:23:50 +02: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:49:52 +01:00 committed by GitHub
parent 23027f1370
commit 5a0baf184c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;