georgringer / news

TYPO3 Extension news
GNU General Public License v2.0
264 stars 358 forks source link

\GeorgRinger\News\Domain\Model\News constructor has wrong return type hint #2134

Closed wazum closed 1 year ago

wazum commented 1 year ago

A constructor has usually no return value, and the implemented constructor does indeed not return anything.

    /**
     * Initialize categories and media relation
     *
     * @return \GeorgRinger\News\Domain\Model\News
     */
    public function __construct()
    {
        $this->categories = new ObjectStorage();
        $this->contentElements = new ObjectStorage();
        $this->relatedLinks = new ObjectStorage();
        $this->falMedia = new ObjectStorage();
        $this->falRelatedFiles = new ObjectStorage();
        $this->tags = new ObjectStorage();
    }

https://github.com/georgringer/news/blob/b4978880c685caa4fbd7c5ac585e3ffa83fd5b99/Classes/Domain/Model/News.php#L247