Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
skrude61 opened this issue Feb 4, 2022 · 1 comment · Fixed by #131
Open

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

skrude61 opened this issue Feb 4, 2022 · 1 comment · Fixed by #131

Comments

@skrude61
Copy link

skrude61 commented Feb 4, 2022

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
Copy link

Thanks! This helped me too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants