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

Core: Error handler (FE): PHP Warning: Declaration of x should be compatible with y #5

Open
bihor opened this issue Nov 7, 2017 · 0 comments

Comments

@bihor
Copy link

bihor commented Nov 7, 2017

I get this warning in the "Protokoll" with the branch for TYPO3 7:

Core: Error handler (FE): PHP Warning: Declaration of Tollwerk\TwAntibot\ViewHelpers\AccessViewHelper::_validate($argument) should be compatible with Tollwerk\TwAntibot\ViewHelpers\AbstractAntibotViewHelper::_validate($argument = NULL) in /html/typo3/typo3conf/ext/tw_antibot/Classes/ViewHelpers/AccessViewHelper.php line 35

Simple solution: make it compatible. Add "= null" at the _validate method in AccessViewHelper.php:
protected function _validate($argument = null)

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

No branches or pull requests

1 participant