Fix various compatibility issues with PHP 8
This commit is contained in:
committed by
Frédéric Guillot
parent
f5bb55bdb8
commit
4bf3b0d459
@@ -113,7 +113,7 @@ class LetterAvatarProvider extends Base implements AvatarProviderInterface
|
||||
*
|
||||
* @access protected
|
||||
* @param string $str
|
||||
* @return int[]
|
||||
* @return array
|
||||
*/
|
||||
protected function getHSL($str)
|
||||
{
|
||||
|
||||
@@ -46,7 +46,7 @@ class DatabaseUserProvider implements UserProviderInterface
|
||||
* Get internal id
|
||||
*
|
||||
* @access public
|
||||
* @return string
|
||||
* @return integer
|
||||
*/
|
||||
public function getInternalId()
|
||||
{
|
||||
|
||||
@@ -117,11 +117,11 @@ class LdapUserProvider implements UserProviderInterface
|
||||
* Get internal id
|
||||
*
|
||||
* @access public
|
||||
* @return string
|
||||
* @return integer
|
||||
*/
|
||||
public function getInternalId()
|
||||
{
|
||||
return '';
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -46,11 +46,11 @@ abstract class OAuthUserProvider implements UserProviderInterface
|
||||
* Get internal id
|
||||
*
|
||||
* @access public
|
||||
* @return string
|
||||
* @return integer
|
||||
*/
|
||||
public function getInternalId()
|
||||
{
|
||||
return '';
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -66,11 +66,11 @@ class ReverseProxyUserProvider implements UserProviderInterface
|
||||
* Get internal id
|
||||
*
|
||||
* @access public
|
||||
* @return string
|
||||
* @return integer
|
||||
*/
|
||||
public function getInternalId()
|
||||
{
|
||||
return '';
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user