Skip to content

Commit

Permalink
[TASK] Simplify some type annotations
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 committed Feb 3, 2025
1 parent 23027f1 commit ec3802f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Classes/Domain/Model/Tea.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,13 @@ class Tea extends AbstractEntity
protected string $description = '';

/**
* @var FileReference|null
* @phpstan-var FileReference|LazyLoadingProxy|null
* @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.

/**
* @phpstan-var int<0, max>
* @var int<0, max>
*/
protected int $ownerUid = 0;

Expand Down

0 comments on commit ec3802f

Please sign in to comment.