You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hook expects a \PageRegular instead of a Contao\PageRegular which leads to something like
Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Type error: Argument 3 passed to MadeYourDay\\RockSolidColumns\\Columns::generatePageHook() must be an instance of PageRegular, instance of Ctsmedia\\Phpbb\\BridgeBundle\\PageType\\Forum
If I recall correctly Contao did this so that you could rewrite classes and it's only legacy stuff today.
Not sure if your module needs still to be compatible with this approach.
If not it should be changed for PageModel, LayoutModel and Database in this class too.
I could provide a PR for it, if you like
The text was updated successfully, but these errors were encountered:
Fixed in the master branch, could you please try "madeyourday/contao-rocksolid-columns": "dev-master as 2.0.1"?
If not it should be changed for PageModel, LayoutModel and Database in this class too.
I don’t think that the call to \Database::getInstance() has do be changed. If the contao framework is booted, \Database should always be available. It should only be relevant for parameter type hints.
The hook expects a
\PageRegular
instead of aContao\PageRegular
which leads to something likewhen a object is passed which extends
Contao\PageRegular
like for example our bridge forum typehttps://github.com/ctsmedia/contao-phpbb-bridge-bundle/blob/master/src/PageType/Forum.php#L27
If I recall correctly Contao did this so that you could rewrite classes and it's only legacy stuff today.
Not sure if your module needs still to be compatible with this approach.
If not it should be changed for PageModel, LayoutModel and Database in this class too.
I could provide a PR for it, if you like
The text was updated successfully, but these errors were encountered: