fix(core): decoratePersonalMenu should only return array

This commit is contained in:
alistair3149 2022-05-18 02:56:15 -04:00 committed by GitHub
parent 2ec20bae5d
commit 176adba1fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,9 +130,9 @@ final class Header extends Partial {
* @param array $personalTools The original personal tools urls
* @param User $user
*
* @return array|null
* @return array
*/
private function decoratePersonalMenu( $personalTools, $user ): ?array {
private function decoratePersonalMenu( $personalTools, $user ): array {
$personalMenu = [
'userpage' => $personalTools['userpage'] ?? null,
'usergroups' => $this->getUserGroupsData( $personalTools, $user ),