mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2025-03-15 09:03: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:
parent
23027f1370
commit
63dfab654a
1 changed files with 2 additions and 8 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue