terminal42 / contao-changelanguage

ChangeLanguage is an extension for the Contao CMS which allows visitors to switch between different languages of your website.
44 stars 35 forks source link

Fix type hint #248

Closed Toflar closed 5 months ago

Toflar commented 5 months ago

Not sure if this is the only one but this currently breaks v 3.7.

[2024-05-21T18:31:20.113462+02:00] request.CRITICAL: Uncaught PHP Exception TypeError: "Terminal42\ChangeLanguage\Helper\LabelCallback::executeCallback(): Argument #1 ($callback) must be of type callable, array given, called in /var/www/vhosts/.../httpdocs/releases/288/vendor/terminal42/contao-changelanguage/src/Helper/LabelCallback.php on line 29" at LabelCallback.php line 58 {"exception":"[object] (TypeError(code: 0): Terminal42\\ChangeLanguage\\Helper\\LabelCallback::executeCallback(): Argument #1 ($callback) must be of type callable, array given, called in /var/www/vhosts/.../httpdocs/releases/288/vendor/terminal42/contao-changelanguage/src/Helper/LabelCallback.php on line 29 at /var/www/vhosts/.../httpdocs/releases/288/vendor/terminal42/contao-changelanguage/src/Helper/LabelCallback.php:58)"} {"request_uri":"https://.../contao?do=page&ref=WQpDYFw6","request_method":"GET"}