mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/17281] Fix return type and ensure type correctness
PHPBB3-17281
This commit is contained in:
parent
5d53089651
commit
e42b743b86
1 changed files with 2 additions and 2 deletions
|
@ -190,7 +190,7 @@ class manager
|
|||
* @param array $row User data or group data
|
||||
* @param string $prefix Prefix of data keys (e.g. user), should not include the trailing underscore
|
||||
*
|
||||
* @return array{string, string} User or group data with keys that have been
|
||||
* @return array User or group data with keys that have been
|
||||
* stripped from the preceding "user_" or "group_"
|
||||
* Also the group id is prefixed with g, when the prefix group is removed.
|
||||
*/
|
||||
|
@ -205,7 +205,7 @@ class manager
|
|||
$output = [];
|
||||
foreach ($row as $key => $value)
|
||||
{
|
||||
$key = preg_replace("#^(?:{$prefix}_)#", '', $key);
|
||||
$key = preg_replace("#^(?:{$prefix}_)#", '', (string) $key);
|
||||
$output[$key] = $value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue