xperseguers / t3ext-ig_ldap_sso_auth

TYPO3 Extension ig_ldap_sso_auth. This extension provides LDAP and SSO support for TYPO3.
https://extensions.typo3.org/extension/ig_ldap_sso_auth
27 stars 62 forks source link

Scheduler task errorr #105

Closed agendartobias closed 3 years ago

agendartobias commented 3 years ago

Hey, when i try to add scheduler task for sync AD users i get this PHP error:

Fatal error: Declaration of Causal\IgLdapSsoAuth\Task\ImportUsers::getLanguageService() must be compatible with TYPO3\CMS\Scheduler\Task\AbstractTask::getLanguageService(): ?TYPO3\CMS\Core\Localization\LanguageService in C:\wamp64\www\htdocs\typo3conf\ext\ig_ldap_sso_auth\Classes\Task\ImportUsers.php on line 33

I am using TYPO3 10.4.4 and ig_ldap_sso_auth 3.5.1

Can anyone help?

andremichaelis commented 3 years ago

Quickfix:

Change lines 354 and following ...

    /**
     * Returns the LanguageService.
     *
     * @return \TYPO3\CMS\Core\Localization\LanguageService|null
     */
    protected function getLanguageService(): ?\TYPO3\CMS\Core\Localization\LanguageService
    {
        return $GLOBALS['LANG'] ?? null;
    }
xperseguers commented 3 years ago

Duplicate of #101