Project

General

Profile

Actions

Bug #78392

closed

Type check for Avatar

Added by Marc Willmann over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2016-10-24
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

https://scrutinizer-ci.com/g/TYPO3/TYPO3.CMS/issues/master/files/typo3/sysext/backend/Classes/Backend/Avatar/Avatar.php?selectedLabels%5B0%5D=9&orderField=path&order=asc&honorSelectedPaths=0

It seems like $backendUser can also be of type null; however, TYPO3\CMS\Backend\Backen...atar\Avatar::getImage() does only seem to accept array, maybe add an additional type check?

Actions

Also available in: Atom PDF