Review main Merged

73304[TASK] Streamline functions returning $GLOBALS['BE_USER']

Torben Hansen CR +2 V +2 Hard +76 −419 updated 02/05/22, 21:43

Commit message

Many classes in TYPO3 have a function called
getBackendUser() or getBackendUserAuthentication(). The
function definition is not always equal and some functions
have a return type or doc comment and others do not.

This patch streamlines the functions as following:

* They must always use a return type declaration
* They must not contain a doc comment header

Also, some superfluous override of getBackendUser()
have been removed.

Additionally the parameter type declaration for
$backendUserAuthentication in

* BeforeHistoryRollbackStartEvent
* AfterHistoryRollbackFinishedEvent
* RecordHistoryRollback

have been adapted to be nullable.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 99

Show 79 more files