Skip to content

Commit

Permalink
[BUGFIX] Fix for post tag cloud Extbase mapping
Browse files Browse the repository at this point in the history
Annotation seems needed.

Follow-up to 52801a9
  • Loading branch information
fnagel committed Nov 30, 2023
1 parent d75f627 commit fad536c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
],
// PHPdocs / type hinting
'no_empty_phpdoc' => true,
// Removes @var annotations from Extbase models which is needed for TYPO3 v11 but seems ok for v12
'no_superfluous_phpdoc_tags' => true,
// Those are risky, check manually if enabled!
// 'phpdoc_to_param_type' => true,
// 'phpdoc_to_return_type' => true,
// 'phpdoc_to_property_type' => true,
// 'phpdoc_trim_consecutive_blank_line_separation' => true,
// Removes @var annotations from Extbase models which is needed for TYPO3 v11 but seems almost ok for v12
'no_superfluous_phpdoc_tags' => false,
]);

return $config;
5 changes: 5 additions & 0 deletions Classes/Domain/Model/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ class Post extends AbstractLocalizedEntity

protected ?int $allowComments = null;

/**
* This var annotation seems needed for Extbase.
*
* @var string
*/
protected string $tagCloud = '';

protected int $numberOfViews = 0;
Expand Down

0 comments on commit fad536c

Please sign in to comment.