[BUGFIX] tx_rsaauth_sv1::authUser() gives PHP notice
authorXavier Perseguers <xavier@typo3.org>
Mon, 19 Sep 2011 21:12:00 +0000 (23:12 +0200)
committerGeorg Ringer <mail@ringerge.org>
Tue, 8 May 2012 15:35:05 +0000 (17:35 +0200)
PHP Runtime Notice: Declaration of tx_rsaauth_sv1::authUser() should
be compatible with that of tx_sv_auth::authUser().

Change-Id: Idbd7ca2b69d3142497b1770088d991901950a852
Fixes: #30057
Releases: 4.5
Reviewed-on: http://review.typo3.org/9799
Reviewed-by: Philipp Gampe
Reviewed-by: Oliver Klee
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/sv/class.tx_sv_auth.php
typo3/sysext/sv/class.tx_sv_authbase.php

index 5a5b4b5..f974cdc 100644 (file)
@@ -122,7 +122,7 @@ class tx_sv_auth extends tx_sv_authbase     {
         * @param       array           Data of user.
         * @return      boolean
         */
-       function authUser($user)        {
+       public function authUser(array $user) {
                $OK = 100;
 
                if ($this->login['uident'] && $this->login['uname'])    {
index 017c8eb..abcfd5e 100644 (file)
@@ -105,7 +105,7 @@ class tx_sv_authbase extends t3lib_svbase   {
         * @param       string          security_level
         * @return      boolean         true if login data matched
         */
-       function compareUident($user, $loginData, $security_level='') {
+       function compareUident(array $user, array $loginData, $security_level = '') {
                return $this->pObj->compareUident($user, $loginData, $security_level);
        }