georgringer / eventnews

TYPO3 CMS Extension "eventnews" for displaying news as event in an calendar
Other
27 stars 60 forks source link

NewsDemand::getDay() must be of the type int, null returned #130

Open skrude61 opened 2 years ago

skrude61 commented 2 years ago

Trying to open an archived news record, I get the error Core: Exception handler (WEB): Uncaught TYPO3 Exception: Return value of GeorgRinger\News\Domain\Model\Dto\NewsDemand::getDay() must be of the type int, null returned | TypeError thrown in file [...]7typo3conf/ext/news/Classes/Domain/Model/Dto/NewsDemand.php in line 437

In eventnews/Classes/Domain/Model/Dto/Demand.php I see that protected $day is redeclared (it was declared as protected $day = 0 in news/Classes/Domain/Model/Dto/NewsDemand.php). Removing that redeclaration is healing the issue.

mschmitz89 commented 2 years ago

Thanks! This helped me too!