Fix various compatibility issues with PHP 8
This commit is contained in:
committed by
Frédéric Guillot
parent
f5bb55bdb8
commit
4bf3b0d459
@@ -76,7 +76,7 @@ class RememberMeCookie extends Base
|
||||
$this->encode($token, $sequence),
|
||||
$expiration,
|
||||
$this->helper->url->dir(),
|
||||
null,
|
||||
'',
|
||||
$this->request->isHTTPS(),
|
||||
true
|
||||
);
|
||||
|
||||
@@ -21,7 +21,7 @@ class TextHelper extends Base
|
||||
*/
|
||||
public function e($value)
|
||||
{
|
||||
return htmlspecialchars($value, ENT_QUOTES, 'UTF-8', false);
|
||||
return htmlspecialchars((string) $value, ENT_QUOTES, 'UTF-8', false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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