Skip to content

Commit

Permalink
[TASK] Simplify some type annotations (#1590)
Browse files Browse the repository at this point in the history
Now that we have removed support for TYPO3 11LTS, we can
simplify some type annotations.
  • Loading branch information
oliverklee authored Feb 3, 2025
1 parent 23027f1 commit 5a0baf1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Classes/Domain/Model/Tea.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 5a0baf1

Please sign in to comment.