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

do not use second param for getTemplateGroup #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fritzmg
Copy link

@fritzmg fritzmg commented Feb 5, 2020

Fixes the following error:

Argument 2 passed to Contao\Controller::getTemplateGroup() must be of the type array, null given, called in vendor/cgo-it/rate-it/src/Resources/contao/classes/DcaHelper.php on line 60

Having a second integer parameter is still a remnant from Contao 2. It was not a problem in Contao 3 and 4 since no second parameter was used by Contao. However, no in the newest version of Contao, there is a second parameter again - and it is of type array now.

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 this pull request may close these issues.

None yet

1 participant